-
-
Save mirhec/ce2d6b8a252c7862011de93cbace8e5b to your computer and use it in GitHub Desktop.
Fish shell installer for uberspace.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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