Unexpected Bash behaviour in 14.1
Just installed Slackware 14.1 on an Asus K53E laptop to have a look. Everything works great so far .. not unexpectedly. There is however, one little thing that I have noticed which is that when I fire up KDE's Konsole only some of /etc/profile is read. The environment variables seem to be picked up ok but the prompt and aliases are not. This happens whether I log in as me or as root. The boot console doesn't suffer from this behaviour. Is this something new or have I just missed something?
|
.profile is only read at login. Try putting aliases in .bashrc. .bashrc is loaded when you start any bash terminal.
|
I've tried putting a .bashrc and .bash_profile into my home folder .. no luck. As I said in my post, this behaviour is new to me. For 18 years now up until the latest slackware, whenever I've started a terminal program it has picked up the /etc/profile contents.
Hold the phone ... just tried a .bashrc file again and it's working now. I've never had to use one before. Thanks for the reply. :) |
Edit the Konsole profile and change the command to "/bin/bash -l". The "-l" loads your .profile.
|
tux dude's approach is the one I use. I first came across the issue in Slackware 13 and thought it was related to the introduction of kde4. See this thread
|
All times are GMT -5. The time now is 07:50 PM. |