From 09b038046742ef35ee446ee8473663a491805ee2 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 5 Jul 2020 20:01:51 +0100 Subject: zsh: Add paths to ${PATH} in env instead of rc Also, only add paths if they are not already in ${PATH}. This avoids duplicates in subshells. --- zsh/rc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'zsh/rc') diff --git a/zsh/rc b/zsh/rc index 9885dc7..237c140 100644 --- a/zsh/rc +++ b/zsh/rc @@ -15,13 +15,6 @@ PS1="%n@%m:%~ %# " SAVEHIST=${HISTSIZE} WORDCHARS=${WORDCHARS/\//} -() { - local dir - for dir in ~/{.local/bin,bin} ${GOPATH:-~/go}/bin; do - [[ -d ${dir} ]] && path=(${dir} ${path}) - done -} - alias bc='bc -lq' alias cp='cp -i' alias ddig='dig +noall +answer' -- cgit v1.2.3-70-g09d2