I use MacBook Air with OSX 10.7.2.
I would like to create an alias that does the following:
- Opens TextMate with ~/.bashrc and allows me to edit it
- Once I close TextMate, "sources" ~/.bashrc (so if I add a new alias, for example, it will be available immediately)
I tried the following:
alias b="/usr/bin/mate -w ~/.bashrc; source ~/.bashrc"
but it doesn't work: when I close TextMate, the shell doesn't return (I don't see the shell prompt).