From f949f3584cbae7cf0d0b55cb009e5c82f01ce962 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 5 Sep 2014 00:23:33 -0400 Subject: [PATCH] Prevent duplicate path entries --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index 9ca9991..c7bd3b9 100644 --- a/.zshrc +++ b/.zshrc @@ -17,6 +17,9 @@ if test -d /soft/linux/pkg/bin ; then export PATH=/soft/lus/linux/vim/7.4-$(uname -m)/bin:$PATH; fi +# clean up duplicate paths +typeset -U PATH + # List directory when changing (github/r00k) chpwd() { ls -lvh --color=auto