From 74dc5be318d25890e90d02cfcbd812c8d8ad4d31 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sun, 19 Jan 2025 11:48:34 +0200 Subject: install.sh fix subdir symlinking, symlink bash_profile to profile --- install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 74895f8..e702b37 100644 --- a/install.sh +++ b/install.sh @@ -8,9 +8,13 @@ for i in $(ls -ap | grep -v /); do rm $HOME/$i 2> /dev/null ln -s $PWD/$i $HOME/$i done +if [ -f "$HOME/.bash_profile" ]; then + rm $HOME/.bash_profile + ln -s $HOME/.profile $HOME/.bash_profile +fi # Install all .config dotfiles -for i in $(ls -a ./.config); do +for i in $(ls -A ./.config); do rm -rf $HOME/.config/$i 2> /dev/null ln -s $PWD/.config/$i $HOME/.config/$i done @@ -21,6 +25,6 @@ if [ ! -d "$HOME/.scripts" ]; then mkdir $HOME/.scripts fi -for i in $(ls -a ./.scripts); do +for i in $(ls -A ./.scripts); do ln -s $PWD/.scripts/$i $HOME/.scripts/$i done -- cgit v1.2.3