mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Accommodate fish shell 2.0.0
This commit is contained in:
@@ -105,7 +105,7 @@ __In fish:__
|
||||
And add the following to your `~/.config/fish/config.fish` or equivalent:
|
||||
|
||||
```bash
|
||||
eval (tmuxifier init -)
|
||||
eval (tmuxifier init - fish)
|
||||
```
|
||||
|
||||
### Custom Tmux Arguments
|
||||
|
||||
@@ -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
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,12 @@ case "$shell" in
|
||||
;;
|
||||
fish )
|
||||
echo "set -gx TMUXIFIER \"$TMUXIFIER\";"
|
||||
# fish shell 2.0.0 does not have the source alias
|
||||
if [[ $(fish --version 2>&1 | awk -F'version ' '{print $2}') = '2.0.0' ]]; then
|
||||
echo ". \"\$TMUXIFIER/init.fish\";"
|
||||
else
|
||||
echo "source \"\$TMUXIFIER/init.fish\";"
|
||||
fi
|
||||
;;
|
||||
* )
|
||||
echo "export TMUXIFIER=\"$TMUXIFIER\";"
|
||||
|
||||
Reference in New Issue
Block a user