Parcourir la source

do not add to PATH directory that does not exist

pull/1/head
10sr il y a 10 ans
Parent
révision
ba3ef9321a
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. +8
    -1
      bashrc

+ 8
- 1
bashrc Voir le fichier

@@ -54,7 +54,14 @@ __match(){

if ! __match "$PATH" "$HOME/.local/bin"
then
PATH="${PATH}:${HOME}/.local/bin:$HOME/.local/lib/gems/bin"
if test -d "$HOME/.local/bin"
then
PATH="${HOME}/.local/bin:${PATH}"
fi
if test -d "$HOME/.local/lib/gems/bin"
then
PATH="$HOME/.local/lib/gems/bin:${PATH}"
fi
fi

if ismsys && ! __match "$PATH" /c/mingw/bin


Chargement…
Annuler
Enregistrer