Thanks for the clarification, I got the point now.
I commented my /etc/profile as shown below so that also non-experts understand
what it is about (and maybe become experts too some day).
My general issue of looking into this was the default value of PS1 which
obfuscates the input line if I am too deep down in the filesystem hierarchy as
then most of the input line is taken by the prompt.
If I want to know the path I can always look at the top window decoration, so I
prefer \W instead of \w.
if [ "$PS1" ]; then # if PS1 is defined, the shell is interactive
if [ "$BASH" ]; then # for bash
PS1='\u@\h:\W\$ ' # we define PS1 here
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else # non-bash interactive shells
if [ "`id -u`" -eq 0 ]; then
PS1='# ' # use # as PS1 for root users
else
PS1='$ ' # or $ as PS1 for other users
fi
fi
fi
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/497765
Title:
Karmic does not set PS1 correctly in /etc/profile
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/497765/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs