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 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 |
Great thing. Unfortunately I get this error:
configure.ac:89: error: possibly undefined macro: AC_CONFIG_MACRO_DIRS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
checking if autoreconf needs to be run... no
checking if autoheader needs to be run... yes
configure: running autoheader
./configure: line 1994: syntax error near unexpected token `m4'
./configure: line 1994: `AC_CONFIG_MACRO_DIRS(m4)'
make: *** No targets specified and no makefile found. Stop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install fish with following command:
curl -L http://goo.gl/KfVYpI | bash