thoughtbot / dotfiles

A set of vim, zsh, git, and tmux configuration files.
https://thoughtbot.com
Other
7.97k stars 1.87k forks source link

How do I keep shell things out of dotfiles but loaded cleanly? #15

Closed croaky closed 12 years ago

croaky commented 12 years ago

For example, I have this:

# RVM
[[ -s '/Users/croaky/.rvm/scripts/rvm' ]] && source '/Users/croaky/.rvm/scripts/rvm'

It's in ~/.zshrc, which is a symlink to what's in dotfiles. I don't want to accidentally commit it into dotfiles. Where should it go?

jferris commented 12 years ago

I put those kinds of things in ~/.zshenv.

croaky commented 12 years ago

Awesome, thanks. Updated the documentation to make that suggestion:

https://github.com/thoughtbot/dotfiles/commit/87685f1fbf60fc71552503637754ee1e938dd132