Skip to content

Commit

Permalink
Use conventional zsh dotfile names
Browse files Browse the repository at this point in the history
* move rebenv initialization from .zlogin to .zshrc
* rbenv documentation recommends .zshrc
* less files for us to manage in our home directory

* use zshrc instead of zprofile
* zprofile is just an alternative for ksh fans [source](http://zsh.sourceforge.net/Intro/intro_3.html)
* Tim Pope recommends moving /etc/zshenv to /etc/zshrc [source](https://github.com/tpope/vim-rbenv)
  • Loading branch information
Greg Lazarev committed Apr 10, 2013
1 parent 70bcd8f commit 1ed31e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mac
Expand Up @@ -5,7 +5,7 @@ successfully() {
}

echo "Fix OSX zsh environment bug"
successfully sudo mv /etc/{zshenv,zprofile}
successfully sudo mv /etc/{zshenv,zshrc}

echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
Expand Down Expand Up @@ -65,8 +65,8 @@ echo "Installing watch, used to execute a program periodically and show the outp

echo "Installing rbenv for changing Ruby versions ..."
successfully brew install rbenv
successfully echo 'eval "$(rbenv init -)"' >> ~/.zlogin
successfully source ~/.zlogin
successfully echo 'eval "$(rbenv init -)"' >> ~/.zshrc
successfully source ~/.zshrc

echo "Installing rbenv-gem-rehash so the shell automatically picks up binaries after installing gems with binaries..."
successfully brew install rbenv-gem-rehash
Expand Down

0 comments on commit 1ed31e7

Please sign in to comment.