You are not logged in.
Hi,
I've always used c-shell for ease in writing shell scripts. I'm interested in moving to bash and just using c-shell for scripting.
In a .cshrc I can do something like this:
if [ -o /bin/su ]; then
set prompt="%{\e]2\;%t - %m:%/^g\e]1\;%m^g\r%}%B:%m%b# "
else
set prompt="%{\e]2\;%t - %m:%/^g\e]1\;%m^g\r%}%B:%m%b$ "
fi
I edited the if statement for what an if statement should look like in bash. This, however, doesn't work. I'm assuming the word "prompt" is wrong. How do I get this working in bash?
EDIT: SEEMS LIKE THIS DID IT!
PS1="\u@\h:\w#
Last edited by playdafunkimuzic (2009-08-27 18:29:51)
Offline
Offline