Last active
April 19, 2017 14:18
-
-
Save mamiu/33ab4278c5b8aef36f70 to your computer and use it in GitHub Desktop.
Fish shell installer for uberspace.
This file contains hidden or 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 | |
std_install_dir="${HOME}/.toast/armed" | |
printf "The standard install directory is [${std_install_dir}].\nIf you want to change it, insert another directory: ${HOME}/" | |
read install_dir | |
if [[ "$install_dir" == "" ]]; then | |
install_dir="$std_install_dir" | |
else | |
install_dir="${HOME}/$install_dir" | |
fi | |
if [[ ! -d "$install_dir" ]]; then | |
mkdir -p "$install_dir" | |
fi | |
git clone https://github.com/fish-shell/fish-shell.git | |
cd fish-shell/ | |
autoconf | |
./configure --prefix "$install_dir" | |
make && make install | |
cd .. && rm -rf fish-shell | |
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
Great thing. Unfortunately I get this error: