diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-11-25 15:25:39 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-11-25 15:25:39 +0100 |
| commit | 86dc63d0348942bca7be03de7c1715a938821700 (patch) | |
| tree | b511ae9e534f56cc9186677ea3fb056f62107ba6 | |
| parent | 535e5f76cbd9aa63ff7ee4a80b8d9a4cf358aefa (diff) | |
| download | dotfiles-86dc63d0348942bca7be03de7c1715a938821700.tar.gz dotfiles-86dc63d0348942bca7be03de7c1715a938821700.zip | |
[bash] prepend new path elements to PATH and add /bin and /sbin
| -rw-r--r-- | bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" ]] |
