diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2022-08-01 21:02:58 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2022-08-01 21:02:58 +0200 |
commit | 5cf842437bab77553bfe18fbcb59b3c97e34871f (patch) | |
tree | d454f798da55f82ae04ddc4ae602a984384d83f0 /stow | |
parent | 1e891297c474e9f2f5533c966dbcc8edd31ed901 (diff) | |
download | configs-5cf842437bab77553bfe18fbcb59b3c97e34871f.tar.gz configs-5cf842437bab77553bfe18fbcb59b3c97e34871f.zip |
Put scripts at beginning of PATH.
Diffstat (limited to 'stow')
-rw-r--r-- | stow/rcs/.bash_aliases | 1 | ||||
-rw-r--r-- | stow/rcs/.bash_vars | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/stow/rcs/.bash_aliases b/stow/rcs/.bash_aliases index 1ecdb43..4ac3f3b 100644 --- a/stow/rcs/.bash_aliases +++ b/stow/rcs/.bash_aliases @@ -15,7 +15,6 @@ alias z='cd ~/docs/zettelkasten && vim "$(./porTema.sh)"' alias zn='cd ~/docs/zettelkasten && vim "$(./nuevo.sh)"' alias o='rifle' alias youtube-dl='yt-dlp' -alias dmenu='dmenu -c -bw 3 -i -l 10' # config files alias cb="vim ~/.bashrc" diff --git a/stow/rcs/.bash_vars b/stow/rcs/.bash_vars index e86c703..7f16785 100644 --- a/stow/rcs/.bash_vars +++ b/stow/rcs/.bash_vars @@ -76,15 +76,15 @@ fi # $PATH # ######### -# java -export JAVA_HOME="/usr/lib/jvm/default/" -PATH="${PATH}:${JAVA_HOME}/bin" - -# Add scripts folder to path plus its direct subfolders +# Add scripts folder plus its direct subfolders to path and at the beginning for dir in $(find "$HOME/scripts" -type d | grep -v '/\.'); do - PATH="${PATH}:${dir}" + PATH="${dir}:${PATH}" done +# Add java bins folder to path +export JAVA_HOME="/usr/lib/jvm/default/" +PATH="${PATH}:${JAVA_HOME}/bin" + # Add ruby bins (gems) folder to path PATH="${PATH}:$(ruby -e 'puts Gem.user_dir')/bin" |