mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Merge pull request #58 from mlavi/fish2-0-0
Accommodate fish shell 2.0.0
This commit is contained in:
@@ -76,7 +76,12 @@ case "$shell" in
|
||||
;;
|
||||
fish )
|
||||
echo "set -gx TMUXIFIER \"$TMUXIFIER\";"
|
||||
echo "source \"\$TMUXIFIER/init.fish\";"
|
||||
# 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