From 7f6bba0e5d341b2f70a63217dced46b8e69ca0ac Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 4 Oct 2019 11:48:34 +0200 Subject: [PATCH] [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. --- install.sh | 10 ++++------ shell/.profile | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 69ecc68..642d3c7 100755 --- a/install.sh +++ b/install.sh @@ -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/ diff --git a/shell/.profile b/shell/.profile index 4050165..f80a235 100644 --- a/shell/.profile +++ b/shell/.profile @@ -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