If you make changes to your ~/.bashrc or ~/.bash_profile or ~/.zshrc, etc... you can load the changes without logging in and out again by issuing a source command:
source ~/.bashrc # load changes, execute commands, etc...
alternatively, you can use the shortcut dot syntax:
. ~/.bashrc
You can do the same in Vim to read a file of ex-commands such as your ~/.vimrc.
:source ~/.vimrc
Monday, June 9, 2008
Subscribe to:
Post Comments (Atom)
1 comment:
The unfortunate part about '.', I've found, is that it doesn't work in zsh. No idea why. I'm also unsure why my company is committed to zsh, but there it is.
Writing portable anything in UNIX is much harder than it ought to be.
Post a Comment