Register
It is currently Sun Apr 20, 2014 10:03 am

my command prompt


All times are UTC - 6 hours


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 PostPosted: Tue May 17, 2005 10:24 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 657
Location: Des Moines, Iowa
Originally posted by jbsnake

a persons command prompt is very unique to them...if they use the command line alot that is...
i personally can't stand the default anything :)
the command prompt i have set up for my username is
Code:
PS1='<- ${USER:0:2}:`pwd` -> '

that ofcourse when i'm logged in as jbsnake is
Code:
<- jb:/home/jbsnake/scripts ->

ofcourse the root spells out root etc.[/b]


Top
 Profile WWW  
 PostPosted: Tue May 17, 2005 10:25 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 657
Location: Des Moines, Iowa
Originally posted by l00ser

jbsnake wrote:
a persons command prompt is very unique to them...if they use the command line alot that is...


I totally agree...

here is my prompt:


Code:
PS1="\[\033[1;34m\][\d][\t]\n[\u@\h:\w]$\[\033[0m\] "


This produces:

Code:
[Fri Dec 17][14:50:14]
[<user>@<short hostname>:~]$


where <user> equals your real logon user name and <short hostname> the hostname up to the first `.'

Get all the "Bash Prompt Escape Sequences" at Bash Prompt HOWTO

Hope that helps someone...

l00ser


Top
 Profile WWW  
 PostPosted: Tue May 17, 2005 4:17 pm   

Joined: Tue May 17, 2005 4:06 pm
Posts: 4
Location: Penguin Island, Antarctica
I was about to start a new thread with this :)

Here's mine, I rather like mine.

PS1="\s-\v \$"

Its nice because when I take screenshots, I just dislike my terminals showing which dir I am in. I use `pwd` to determine that and its nice. :)


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP