Skip to content

Commit

Permalink
Fish installation and Zsh text
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Feb 6, 2019
1 parent cd464ac commit 8e4f6f1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,28 @@ 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'
echo 'eval `fnm env`'

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
Expand Down

0 comments on commit 8e4f6f1

Please sign in to comment.