mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Accommodate fish shell 2.0.0
This commit is contained in:
@@ -11,7 +11,10 @@ end
|
||||
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
|
||||
# load Tmuxifier shell completion.
|
||||
if test -n (which tmuxifier); and test -z $TMUXIFIER_NO_COMPLETE
|
||||
source "$TMUXIFIER/completion/tmuxifier.fish"
|
||||
# fish shell 2.0.0 does not have the source alias
|
||||
if [ (fish --version 2>| awk -F'version ' '{print $2}') = '2.0.0' ];
|
||||
. "$TMUXIFIER/completion/tmuxifier.fish"
|
||||
else
|
||||
source "$TMUXIFIER/completion/tmuxifier.fish"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user