sontek ( John M. Anderson )

February 20, 2008

Whats in your PS1?

Filed under: Bash, Linux — Tags: , — sontek @ 1:01 am

Theres a discussion going on at reddit about PS1 ( here ).

Mine is:

PS1='\d \t\n\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \n\$\[\033[00m\] ‘

and it looks like:


Wed Feb 20 01:09:15
sontek@inspidell ~
$

Thanks to Chris Crummer for pointing out the reddit post.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • description
  • Pownce
  • Slashdot
  • StumbleUpon
  • TwitThis

2 Comments »

  1. Back when I used zsh, it was as follows:

    %n@%m:%~ %h:%?%#

    Which gave the following prompt:

    hobbsc@sdf:~ 1002:0%

    Now that I’m using bash, its just the default prompt:

    $(ppwd \l)\u@\h:\w>

    Which shows:

    chobbs@SS002:~>

    Comment by Christopher — February 20, 2008 @ 7:29 am

  2. Mine looks like this (I use zsh):

    PS1=%{%b%}[%{%}%n%{%b%}@%{%}%m%{%b%}]

    [joao.trindade@smarties]

    And in the right side:
    LPROMPT=%{%b%s%u%}%{%}(%{%}%B%~%b%{%})%{%b%s%u%}

    (~/workspace)

    Comment by Joao Trindade — May 15, 2008 @ 2:33 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress