IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New While we're comparing prompts...
I use:

EXPORT PS1='$PWD [$?] \\u@\\h \\$ '

I could use \\w instead of $PWD, I guess, but the ~ bothers me. Meanwhile, the $? is useful just often enough to leave it in there.

Wade.

"Ah. One of the difficult questions."

New Re: While we're comparing prompts...
Never thought about displaying previous exit codes... That rocks.

export PS1='$PWD [$?] \\u@\\h \\$ '
Gives me:
/home/gfolkert [0] gfolkert@ren $ blahblah
bash: blahblah: command not found
/home/gfolkert [127] gfolkert@ren $ mkdir foo
/home/gfolkert [0] gfolkert@ren $ touch foo/foofoo
/home/gfolkert [0] gfolkert@ren $ rmdir foo
rmdir: foo: Directory not empty
/home/gfolkert [1] gfolkert@ren $ rm -f foo/foofoo
/home/gfolkert [0] gfolkert@ren $ rmdir foo
/home/gfolkert [0] gfolkert@ren $


I like it... prolly going to change a few things too.

greg, curley95@attbi.com -- REMEMBER ED CURRY!!!
New It's one of those too-obvious things.
I had been doing some development with 4DOS batch files and caught myself typing echo $? so often I wondered why I couldn't put it in the prompt. Of course, I actually could, but it took me a few minutes to realize that! When I later picked up Linux and bash, I'd gotten used to it in my 4DOS prompts, so I put it in my bash prompts. Glad you like it.

Wade.

"Ah. One of the difficult questions."

     command that you ALWAYS run BEFORE init 0 - (boxley) - (8)
         I've done that as well - (tjsinclair)
         Re: command that you ALWAYS run BEFORE init 0 - (folkert) - (6)
             I use colours as well. - (Meerkat) - (1)
                 prompt attention - (kmself)
             more .bashrc - (pwhysall) - (3)
                 While we're comparing prompts... - (static) - (2)
                     Re: While we're comparing prompts... - (folkert) - (1)
                         It's one of those too-obvious things. - (static)

Powered by an Atari TT030!
47 ms