diff --git a/setup_symlinks.sh b/setup_symlinks.sh index 8f373bc..2be38d6 100755 --- a/setup_symlinks.sh +++ b/setup_symlinks.sh @@ -2,6 +2,9 @@ # check if the files exist, and remove. +# get path where all files live. +repo_path=`dirname $(readlink -f $0)` + if [ -f ~/.zshrc ]; then rm -f ~/.zshrc fi @@ -15,7 +18,7 @@ if [ -f ~/.vimrc ]; then rm -f ~/.vimrc fi -ln -s $(pwd)/.zshrc ~/.zshrc -ln -s $(pwd)/.p10k.zsh ~/.p10k.zsh -ln -s $(pwd)/.aliases ~/.aliases -ln -s $(pwd)/.vimrc ~/.vimrc \ No newline at end of file +ln -s $repo_path/.zshrc ~/.zshrc +ln -s $repo_path/.p10k.zsh ~/.p10k.zsh +ln -s $repo_path/.aliases ~/.aliases +ln -s $repo_path/.vimrc ~/.vimrc \ No newline at end of file