Skip to content

Instantly share code, notes, and snippets.

@mirhec
Forked from mamiu/install_fish.sh
Last active December 12, 2016 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirhec/ce2d6b8a252c7862011de93cbace8e5b to your computer and use it in GitHub Desktop.
Save mirhec/ce2d6b8a252c7862011de93cbace8e5b to your computer and use it in GitHub Desktop.
Fish shell installer for uberspace.
#!/bin/bash
cd ~
# install linuxbrew
git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
echo "PATH=\"$HOME/.linuxbrew/bin:$PATH\"" >> ~/.bashrc
echo "MANPATH=\":$HOME/.linuxbrew/share/man:$MANPATH\"" >> ~/.bashrc
echo "INFOPATH=\"$HOME/.linuxbrew/share/info:$INFOPATH\"" >> ~/.bashrc
# set symlinks to gcc
ln -s /package/host/localhost/gcc-4.9/bin/gcc ~/.linuxbrew/bin/gcc-4.9
ln -s /package/host/localhost/gcc-4.9/bin/g++ ~/.linuxbrew/bin/g++-4.9
# install fish with brew
brew install fish
# set fish shell as default
echo -e "\n# use fish as login shell\n[ -f $(which fish) ] && exec $(which fish) -l" >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment