bash aliases lost within tmux
I just noticed that my .bashrc aliases (eg. alias www='cd ~/data/public_html') don't work from within tmux. They work fine from screen, though.
I don't think I've got anything special in ~/tmux.conf Code:
# C-a just like in screen Code:
|
OK, tmux starts a login shell, and a login shell does not source ~/.bashrc
I added the following to ~/.bash_profile Code:
case $- in *i*) . ~/.bashrc;; esac |
I believe you will find the solution here: http://unix.stackexchange.com/questi...-a-bash-script
|
Quote:
|
All times are GMT -5. The time now is 05:28 AM. |