starting bash as a login shell every time
I upgraded slack to current and found that now when I start an X based terminal it loads bash as a non-login interactive shell. This means that bash does not load /etc/profile or ~.bash_profile, only .bashrc. How can I make bash start as a login shell everytime it is executed, or everytime it is executed by an X based terminal?
-Thanks in advance.:D |
Use a command-arg like:
konsole --ls xterm -ls It does not allways work however, for example when using an integrated terminal. Personally I modified my modified my .bashrc-script and added an "export PS1". |
I simply added:
Code:
source /etc/profile This way, you can just leave .bashrc with those two commands, and add all your aliases, functions and whatnot to .bash_profile and have them load for login shells and subshells. --Shade |
Thanks. You're awsome man.
-Thanks again.:D |
All times are GMT -5. The time now is 04:19 AM. |