cd ~
rm .bashrc .profile .bash_profile
brew tap thoughtbot/formulae
brew install rcm
git clone git@github.com:cjolly/dotfiles.git .dotfiles
rcup -d .dotfiles -x ssh -x bash -x README.md -x binENV stuff
- Why should
.bash_profilesource.bashrc? - handle both interactive and non-interactive shells. export VAR=xvsVAR=xexport makes $VAR available to child processes
Bash History
- execute last command:
r(aliased tofc -s) - execute last command starting with 'git'
r git - show history
h(aliased tohistory) - execute specific command from history
h 540 cd -change to last dir