From 8e4f6f1913e9848c9c6dbcbc550448a75a99d637 Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Tue, 5 Feb 2019 17:01:04 +0200 Subject: [PATCH] Fish installation and Zsh text --- .ci/install.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.ci/install.sh b/.ci/install.sh index 187b3a2..b3aef46 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -38,11 +38,20 @@ setup_shell() { if [ "$CURRENT_SHELL" == "zsh" ]; then echo "Installing for Zsh. Appending the following to $HOME/.zshrc:" + echo 'export PATH=$HOME/.fnm:$PATH' + echo 'eval `fnm env`' + echo 'export PATH=$HOME/.fnm:$PATH' >> $HOME/.zshrc echo 'eval `fnm env`' >> $HOME/.zshrc + elif [ "$CURRENT_SHELL" == "fish" ]; then - echo 'Installation for Fish is WIP' - exit 1 + echo "Installing for Fish. Appending the following to $HOME/.config/fish/config.fish:" + echo 'set PATH $HOME/.fnm $PATH' + echo 'eval (fnm env)' + + echo 'set PATH $HOME/.fnm $PATH' >> $HOME/.config/fish/config.fish + echo 'eval (fnm env)' >> $HOME/.config/fish/config.fish + elif [ "$CURRENT_SHELL" == "bash" ]; then echo "Installing for Bash. Appending the following to $HOME/.bashrc:" echo 'export PATH=$HOME/.fnm:$PATH' @@ -50,6 +59,7 @@ setup_shell() { echo 'export PATH=$HOME/.fnm:$PATH' >> $HOME/.bashrc echo 'eval `fnm env`' >> $HOME/.bashrc + else echo "Could not infer shell type. Please set up manually." exit 1