Remove duplicates from PATH

This commit is contained in:
Knut Ahlers 2016-09-16 20:58:58 +02:00
parent 874100c295
commit 1d3247aa44
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -35,3 +35,6 @@ source ${HOME}/.zsh/config-git.zsh
## Load local-config if available
[ -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)')