|
@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
|
set -Eeuo pipefail |
|
|
set -Eeuo pipefail |
|
|
|
|
|
|
|
|
|
|
|
CURDIR=$PWD |
|
|
|
|
|
|
|
|
#remove /etc/skel/.bashrc |
|
|
#remove /etc/skel/.bashrc |
|
|
if [ -e /etc/skel/.bashrc ]; then |
|
|
if [ -e /etc/skel/.bashrc ]; then |
|
|
rm /etc/skel/.bashrc |
|
|
rm /etc/skel/.bashrc |
|
@ -13,9 +15,9 @@ declare -a arr=(/etc/bash.bashrc /etc/inputrc /etc/vim/vimrc) |
|
|
for i in "${arr[@]}"; do |
|
|
for i in "${arr[@]}"; do |
|
|
if [ ! -f "$i.$ORIGINAL" ]; then |
|
|
if [ ! -f "$i.$ORIGINAL" ]; then |
|
|
|
|
|
|
|
|
echo "$i needs installation $(basename $i)" |
|
|
|
|
|
|
|
|
echo "$i needs installation $(basename \\"$i\\")" |
|
|
mv "$i" "$i.$ORIGINAL" |
|
|
mv "$i" "$i.$ORIGINAL" |
|
|
ln -s "$CURDIR/$(basename $i)" "$i" |
|
|
|
|
|
|
|
|
ln -s "$CURDIR/$(basename \\"$i\\")" "$i" |
|
|
else |
|
|
else |
|
|
echo "<$i> already overriden!" |
|
|
echo "<$i> already overriden!" |
|
|
fi |
|
|
fi |
|
|