Remove duplicates from PATH
This commit is contained in:
parent
874100c295
commit
1d3247aa44
1 changed files with 3 additions and 0 deletions
|
@ -35,3 +35,6 @@ source ${HOME}/.zsh/config-git.zsh
|
||||||
|
|
||||||
## Load local-config if available
|
## Load local-config if available
|
||||||
[ -e ${HOME}/.zsh/local-config.zsh ] && source ${HOME}/.zsh/local-config.zsh
|
[ -e ${HOME}/.zsh/local-config.zsh ] && source ${HOME}/.zsh/local-config.zsh
|
||||||
|
|
||||||
|
## Clean PATH from duplicates
|
||||||
|
PATH=$(python -c 'import os; out=[]; [out.append(i) for i in os.environ["PATH"].split(":") if not out.count(i)]; print ":".join(out)')
|
||||||
|
|
Loading…
Reference in a new issue