Skip to content

Instantly share code, notes, and snippets.

@mzagaja
Last active January 29, 2020 21:16
Show Gist options
  • Save mzagaja/0c6e6578905ed7453bd247884081c0b0 to your computer and use it in GitHub Desktop.
Save mzagaja/0c6e6578905ed7453bd247884081c0b0 to your computer and use it in GitHub Desktop.
Fish Shell Install Version Managers
#! /usr/bin/fish
curl -sSL https://get.rvm.io | bash -s stable
curl -L --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish
echo "rvm default" >> ~/.config/fish/config.fish
# brew install python@2 python
pip install virtualfish
'eval (python -m virtualfish)' >> ~/.config/fish/config.fish
# funced iterm2_fish_prompt
# add the following line
# if set -q VIRTUAL_ENV
# echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
# end
# Fix $PATH to use universal variable instead of global variable that might have been set
# The best way to set $PATH is modify universal variable
# set -U fish_user_paths /usr/local/bin $fish_user_paths
# Install NVM fish
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
for i in conf.d functions completions
curl https://git.io/$i.nvm.fish --create-dirs -sLo $XDG_CONFIG_HOME/fish/$i/nvm.fish
end
# For yarn you need to globally install the dev dependencies for the version of node for the project for sublime text to see them.
# yarn global add eslint eslint-config-airbnb eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react sass-lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment