Skip to content

Instantly share code, notes, and snippets.

@mamiu
Last active April 19, 2017 14:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mamiu/33ab4278c5b8aef36f70 to your computer and use it in GitHub Desktop.
Save mamiu/33ab4278c5b8aef36f70 to your computer and use it in GitHub Desktop.
Fish shell installer for uberspace.
#!/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
@mamiu
Copy link
Author

mamiu commented Sep 23, 2014

Install fish with following command: curl -L http://goo.gl/KfVYpI | bash

@ff6347
Copy link

ff6347 commented Apr 19, 2017

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