浏览代码

do not add to PATH directory that does not exist

pull/1/head
10sr 11 年前
父节点
当前提交
ba3ef9321a
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. +8
    -1
      bashrc

+ 8
- 1
bashrc 查看文件

@@ -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


正在加载...
取消
保存