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. Replies: 10
    Last Post: 03-07-2006, 12:07 AM
  2. Prompt pimpin
    By jro in forum Linux - General Topics
    Replies: 6
    Last Post: 02-21-2006, 11:21 PM
  3. How to start System Restore tool at command prompt
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 06:25 AM
  4. KSH prompt help!
    By Killer_Penguin in forum BSD
    Replies: 4
    Last Post: 01-08-2002, 03: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
  •