Results 1 to 3 of 3

Thread: Colored prompt

  1. #1

    Colored prompt

    Just curious

    I'm using bash-3.00.

    PS1="\u(\[\033[1;34m\]\h\[\033[0m\])\w\$ "
    postlogic@(belgarion):~$

  2. #2
    Mentor jro's Avatar
    Join Date
    May 2004
    Location
    Pennsylvania, USA
    Posts
    1,206
    This was a topic earlier, but I will repost 'cause I don't think this ever gets old.
    Code:
    \n\e[1;32m\u@\h\e[0m:[\e[1;36m\w\e[0m]\n[\e[0;32m\@\e[0m]:
    
    jeffrey@blackbox:[/usr/share/]
    [06:34 PM]:
    jro - http://jeff.robbins.ws
    Linux counter#:213782
    GnuPG ID: 406238E7

  3. #3
    Oh, nice. I forgot to back up my .bashrc, so when I reinstalled linux, I went here and picked up my old prompt. Yay.

Similar Threads

  1. Prompt pimpin
    By jro in forum Linux - General Topics
    Replies: 6
    Last Post: 02-22-2006, 12:21 AM
  2. different console in non-X command prompt
    By Blaqb0x in forum Linux - General Topics
    Replies: 2
    Last Post: 06-24-2003, 03:46 PM
  3. csh: $cwd in prompt= not updating
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 02-11-2003, 04:13 AM
  4. KSH prompt help!
    By Killer_Penguin in forum BSD
    Replies: 4
    Last Post: 01-08-2002, 04:43 AM
  5. boot prompt
    By vikram_nanda in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 09-10-2001, 12:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •