aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-11-25 15:25:39 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-11-25 15:25:39 +0100
commit86dc63d0348942bca7be03de7c1715a938821700 (patch)
treeb511ae9e534f56cc9186677ea3fb056f62107ba6 /bashrc
parent535e5f76cbd9aa63ff7ee4a80b8d9a4cf358aefa (diff)
downloaddotfiles-86dc63d0348942bca7be03de7c1715a938821700.tar.gz
dotfiles-86dc63d0348942bca7be03de7c1715a938821700.zip
[bash] prepend new path elements to PATH and add /bin and /sbin
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 37b5519..b033207 100644
--- a/bashrc
+++ b/bashrc
@@ -3,10 +3,12 @@
pathadd() {
if [ -d "$1" ] && [[ "$PATH" != *"$1"* ]]; then
- PATH=$PATH":$1"
+ PATH="$1":$PATH
fi
}
+pathadd /bin
+pathadd /sbin
pathadd ${HOME}/.local/bin
if [[ -z "$DOTFILES_LOCATION" ]]