Merge pull request #58 from mlavi/fish2-0-0

Accommodate fish shell 2.0.0
This commit is contained in:
2017-04-27 19:21:02 +01:00
committed by GitHub
3 changed files with 13 additions and 5 deletions

View File

@@ -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\";"