mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Only add $TMUXIFIER/bin to $PATH if it is not in $PATH already
This commit is contained in:
4
init.sh
4
init.sh
@@ -6,7 +6,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Add `bin` directroy to `$PATH`.
|
# 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
|
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
|
||||||
# load tmuxifier shell completion.
|
# load tmuxifier shell completion.
|
||||||
|
|||||||
Reference in New Issue
Block a user