-
-
Save croaky/d4719ebbcf8bf4a8f69c to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
echo 'Put Homebrew location earlier in PATH ...' | |
export_brew_path = " | |
# recommended by brew doctor | |
export PATH='/usr/local/bin/usr/local/sbin:$PATH'" | |
if [ "$SHELL" = '/bin/zsh' ]; then | |
echo export_brew_path >> ~/.zshenv | |
source ~/.zshrc | |
elif [ "$SHELL" = '/bin/bash' ]; then | |
echo export_brew_path >> ~/.bashrc | |
source ~/.bashrc | |
fi | |
echo 'Installing RVM (Ruby Version Manager) ...' | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
rvm_load_line " | |
# RVM | |
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" | |
if [ "$SHELL" = '/bin/zsh' ]; then | |
echo rvm_load_line >> ~/.zshrc | |
source ~/.zshrc | |
elif [ "$SHELL" = '/bin/bash' ]; then | |
echo rvm_load_line >> ~/.bashrc | |
source ~/.bashrc | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is probably just test code, but careful on line 6: you're missing a path separator