[UPDATE][SCRIPT] Use hidden script folder in home

I'd rather not see my script folder most of the time, so let's make it a
hidden folder instead.

I also link it each time with stow instead of using a conditional on the
folder's existence, which is more robust when adding scripts after I
already finished an install and only want to update the symlinks.
This commit is contained in:
Bruno BELANYI 2019-10-04 11:48:34 +02:00
parent 8b6840e2ac
commit 7f6bba0e5d
2 changed files with 5 additions and 7 deletions

View file

@ -15,12 +15,10 @@ stow -t ~ tridactyl
stow -t ~ vim
stow -t ~ zsh
if ! [ -e ~/scripts ]; then
# Only create the symlink when the directory doesn't exist
mkdir ~/scripts
# Scripts must be in there own directory
stow -t ~/scripts scripts/
fi
# Only create the symlink when the directory doesn't exist
mkdir -p ~/.scripts
# Scripts must be in their own directory
stow -t ~/.scripts scripts/
# Common shell files
stow -t ~ shell/

View file

@ -1,5 +1,5 @@
# Add our scripts to the path
export PATH="$HOME/scripts:$PATH"
export PATH="$HOME/.scripts:$PATH"
# Export our favorite editor
export EDITOR=vim