u
This commit is contained in:
parent
7f6297301b
commit
2a86197293
@ -34,19 +34,20 @@ if [ ! -d $SourcePath ]
|
|||||||
then
|
then
|
||||||
echo "!!! Not existing $SourcePath, please try again"
|
echo "!!! Not existing $SourcePath, please try again"
|
||||||
else
|
else
|
||||||
echo "Linking $SourcePath/* to $HomePath"
|
echo "Linking $SourcePath/* to $HomePath/"
|
||||||
pushd $HomePath
|
pushd $HomePath
|
||||||
homescriptlist=".emacs .emacs.lisp .bashrc .bash_profile .gitignore"
|
homescriptlist=".emacs .emacs.lisp .bashrc .bash_profile .gitignore"
|
||||||
for homescript in $homescriptlist
|
for homescript in $homescriptlist
|
||||||
do
|
do
|
||||||
if [ -e $homescript ] # .emacs.lisp is a folder! Therefore use -e instead of -f
|
if [ -e $homescript ] # .emacs.lisp is a folder! Therefore use -e instead of -f
|
||||||
then
|
then
|
||||||
|
rm -fr $homescript.backup
|
||||||
mv $homescript $homescript.backup
|
mv $homescript $homescript.backup
|
||||||
fi
|
fi
|
||||||
ln -s $SourcePath/$homescript $HomePath
|
ln -s $SourcePath/$homescript $HomePath
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
echo "Linked $SourcePath/* to $HomePath"
|
echo "Linked $SourcePath/* to $HomePath/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Applying .$HomePath/.bashrc"
|
echo "Applying .$HomePath/.bashrc"
|
||||||
|
Loading…
Reference in New Issue
Block a user