Last active
April 7, 2024 06:52
-
-
Save jjb/45c129380e2f344df19b618e1f0075b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see discussion here thoughtbot/gitsh#281