cd ~
rm .bashrc .profile .bash_profile
brew tap thoughtbot/formulae
brew install rcm
git clone [email protected]:cjolly/dotfiles.git .dotfiles
rcup -d .dotfiles -x ssh -x bash -x README.md -x bin
ENV stuff
- Why should
.bash_profile
source.bashrc
? - handle both interactive and non-interactive shells. export VAR=x
vsVAR=x
export 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