After taking a glance at the table of environment variables, I quickly constructed a string, that I believe is identical to the prompt string that appears in Tiger.
export PS1="\h:\w \u\\$ "
The only thing that I am a bit confused with is the double "\\" near the end of the string and the use of double quotes. Some examples on the blog post use double quotes, whereas some use just single quotes. I'm assuming that these are interchangeable.
Another one I like, is even shorter, and I'll probably be switching in between these two depending on what I'm working on.
export PS1="\h:\w\\$ "
2 comments:
My manager called the iPod Touch the iTouch today. I died a little inside.
a couple other command line tricks you might like...
if you're typing a really long command and realize you need to jump back to the start of the command
ctrl-a
when you're done and want to go back to the end of the command
ctrl-e
...had to share...
Post a Comment