Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I'd like to use a favorite prompt of mine but it doesn't seem to work...
Normally it's:
MyHost=$(hostname)
PS1='$MyHost ${PWD}:"
which just shows up as:
$(hostname) ${PWD}:
when I log in... -- even though it works from the command line... just not in profile
I'm assuming it's the truncated functionality of ash.
Anyone had this working?
-Ben
Last edited by bkamen (2007-07-17 23:18:21)
Offline
Hey yea,
""s instead of ''s help.
But the prompt seems static now... doesn't change with moving around in directories... that's no fun.
-Ben
Last edited by bkamen (2007-07-17 23:36:42)
Offline
Try this
put in your /etc/profile
cdprompt ()
{
cd $*
PS1="[$LOGNAME@$PWD]"
if [ `id -u` = 0 ]; then
PS1=$PS1"# "
else
PS1=$PS1"$ "
fi
}
alias cd=cdpromt
Last edited by BertrandB (2007-07-18 22:38:17)
Offline
Cool - thanks!
Shells shells! same but different!
Gah!
-Ben
Offline