[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 ~ vim
|
||||||
stow -t ~ zsh
|
stow -t ~ zsh
|
||||||
|
|
||||||
if ! [ -e ~/scripts ]; then
|
|
||||||
# Only create the symlink when the directory doesn't exist
|
# Only create the symlink when the directory doesn't exist
|
||||||
mkdir ~/scripts
|
mkdir -p ~/.scripts
|
||||||
# Scripts must be in there own directory
|
# Scripts must be in their own directory
|
||||||
stow -t ~/scripts scripts/
|
stow -t ~/.scripts scripts/
|
||||||
fi
|
|
||||||
|
|
||||||
# Common shell files
|
# Common shell files
|
||||||
stow -t ~ shell/
|
stow -t ~ shell/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Add our scripts to the path
|
# Add our scripts to the path
|
||||||
export PATH="$HOME/scripts:$PATH"
|
export PATH="$HOME/.scripts:$PATH"
|
||||||
|
|
||||||
# Export our favorite editor
|
# Export our favorite editor
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
Loading…
Reference in a new issue