Skip to content

Commit

Permalink
Fix: Installation of gitsh
Browse files Browse the repository at this point in the history
- gitsh does not install correctly with mac (system) ruby
- gitsh does not install correctly with brew because it uses
  system ruby
- gitsh issues seem to suggest that this problem is a high sierra
  issue thoughtbot/gitsh#329
- Need to install ruby then run the manually install gitsh
- Once all macs are upgraded to mojave, manual install can be
  removed
  • Loading branch information
stephaneliu committed Mar 25, 2019
1 parent 8da50c4 commit 07151d6
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,24 @@ if is_osx; then
$HOME/hombrew/bin/brew bundle --file="$brewfile"
done

# Work around for gitsh that fails to install from brew
echo "Install gitsh"
mkdir -p ~/tmp
cd ~/tmp
curl -LO https://github.com/thoughtbot/gitsh/releases/download/v0.12/gitsh-0.12.tar.gz
tar -zxvf gitsh-0.12.tar.gz
cd gitsh-0.12
./configure
make
sudo make install
if [ ! `command -v gitsh` ]; then
# Work around for gitsh that fails to install from brew

# gitsh does not install with default ruby from mac. However, there is a dependency
# issue here because ruby is not installed until chruby is installed
# TODO: Defer installation of gitsh until ruby is installed from ruby-install
local ruby_path=/$HOME/.rubies/ruby-2.6.1/bin/ruby

echo "Install gitsh"
mkdir -p ~/tmp
cd ~/tmp
curl -LO https://thoughtbot.github.io/gitsh/gitsh-0.14.tar.gz
tar -zxvf gitsh-0.14.tar.gz
cd gitsh-0.14
RUBY=$ruby_path ./configure
make
sudo make install
fi

export PATH=$HOME/homebrew/bin:$PATH
fi
Expand Down

0 comments on commit 07151d6

Please sign in to comment.