Created
March 28, 2019 01:19
-
-
Save masakiaota/d934dc15739f1193bd61f93e7e9ba62b to your computer and use it in GitHub Desktop.
install fish without root permission
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 | |
# Script for installing Fish Shell on systems without root access. | |
# Fish Shell will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# original script in https://gist.github.com/masih/10277869 | |
# exit on error | |
set -e | |
FISH_SHELL_VERSION=3.0.2 #自分の好きなバージョンに変えてください | |
#https://github.com/fish-shell/fish-shell/releases/download/3.0.1/fish-3.0.1.tar.gz | |
# create our directories | |
mkdir -p $HOME/local $HOME/fish_shell_tmp | |
cd $HOME/fish_shell_tmp | |
# download source files for Fish Shell | |
wget https://github.com/fish-shell/fish-shell/releases/download/${FISH_SHELL_VERSION}/fish-${FISH_SHELL_VERSION}.tar.gz | |
# extract files, configure, and compile | |
tar xvzf fish-${FISH_SHELL_VERSION}.tar.gz | |
cd fish-${FISH_SHELL_VERSION} | |
./configure --prefix=$HOME/local --disable-shared | |
mkdir build; cd build | |
cmake .. #-DWITH_GETTEXT=OFF #Macではこれをコメントアウトしないとうまくいかない | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment