From fb208184bfb3f27fa3b3395ac90435b238251724 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Tue, 28 Mar 2023 21:12:12 -0400 Subject: [PATCH] correct symlink paths. --- setup_symlinks.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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