mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Make better use of conditional operators and quote vars properly
This commit is contained in:
2
init.sh
2
init.sh
@@ -10,7 +10,7 @@ export PATH="$TMUXIFIER/bin:$PATH"
|
||||
|
||||
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
|
||||
# load tmuxifier shell completion.
|
||||
if [ ! -z $(command -v "tmuxifier") ] && [ -z "$TMUXIFIER_NO_COMPLETE" ]; then
|
||||
if [ -n "$(command -v "tmuxifier")" ] && [ -z "$TMUXIFIER_NO_COMPLETE" ]; then
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
source "$TMUXIFIER/completion/tmuxifier.bash"
|
||||
elif [ -n "$ZSH_VERSION" ]; then
|
||||
|
||||
Reference in New Issue
Block a user