[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:
parent
8b6840e2ac
commit
7f6bba0e5d
|
@ -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
|
||||
mkdir -p ~/.scripts
|
||||
# Scripts must be in their own directory
|
||||
stow -t ~/.scripts scripts/
|
||||
|
||||
# Common shell files
|
||||
stow -t ~ shell/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue