Skip to content

Instantly share code, notes, and snippets.

@lovemecomputer
Last active December 26, 2019 07:54
Show Gist options
  • Save lovemecomputer/b342a26f624647110107eef965211c22 to your computer and use it in GitHub Desktop.
Save lovemecomputer/b342a26f624647110107eef965211c22 to your computer and use it in GitHub Desktop.
steps to go from fresh macbook to nice command line
brew install rbenv ruby-build

# bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile  

# zsh
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zprofile
echo 'eval "$(rbenv init -)"' >> ~/.zprofile  

# list all available versions:
rbenv install -l

# install a Ruby version:
rbenv install 2.4.1

# set ruby version for a specific dir
rbenv local 2.4.1

# set ruby version globally
rbenv global 2.4.1

rbenv rehash
gem update --system

/Users/<username>/.config/fish/config.fish:

set -gx PATH $HOME/.rbenv/versions/2.5.1/bin $PATH
function fish_prompt
    powerline-shell --shell bare $status
end
thefuck --alias | source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment