Only add $TMUXIFIER/bin to $PATH if it is not in $PATH already

This commit is contained in:
2013-06-02 17:42:31 +03:00
parent 04c9309668
commit 51ebf880dc

View File

@@ -6,7 +6,9 @@ else
fi
# Add `bin` directroy to `$PATH`.
export PATH="$TMUXIFIER/bin:$PATH"
if [[ ":$PATH:" != *":$TMUXIFIER/bin:"* ]]; then
export PATH="$TMUXIFIER/bin:$PATH"
fi
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
# load tmuxifier shell completion.