Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjb/45c129380e2f344df19b618e1f0075b9 to your computer and use it in GitHub Desktop.
Save jjb/45c129380e2f344df19b618e1f0075b9 to your computer and use it in GitHub Desktop.
sudo port selfupdate
sudo port install ruby32 # will include readline
sudo port select --set ruby ruby32
### >>> OPEN A NEW TERMINAL!!! <<<
### otherwise, the configuration won't point to the correct version of readline, no matter what you do.
### not sure if this is "through" the ruby binary, or something else in the environment
### i just saved you 17 hours of your life, you're welcome
curl -OL https://github.com/thoughtbot/gitsh/releases/download/v0.14/gitsh-0.14.tar.gz
tar -zxvf gitsh-0.14.tar.gz
cd gitsh-0.14
# >>>> make these modifications: https://github.com/thoughtbot/gitsh/pull/389/files
RUBY=/opt/local/bin/ruby ./configure
make
sudo make install
# if using rbenv you can use this build command:
RUBY=$(which ruby) ./configure
# but then you need to manually change the top line in /usr/local/share/gitsh/ruby/gitsh.rb
# to point directly to the binary
# see discussion here: https://github.com/thoughtbot/gitsh/issues/229
@jjb
Copy link
Author

jjb commented Mar 21, 2017

see discussion here thoughtbot/gitsh#281

@jjb
Copy link
Author

jjb commented Apr 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment