Tuesday, June 11, 2013

Harmonizing .bashrc with .profile to make Unix screen happy

Unix screen doesn't read your .profile on startup. So aliases like ...

alias vi="vim"                                 
alias cdd="cd ~/Documents"
alias cdk="cd ~/Desktop"

... resident in your .profile won't available to you after starting screen.

If you already have a .bashrc then just copy parts of your .profile into your .bashrc. And if you don't have a .bashrc then use ...

ln -sf .profile .bashrc 

... to symlink your .bashrc to your .profile.

No comments: