The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
customize my prompt in bash
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
customize my prompt in bash
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-23-2005
pressy
solaris cultist
Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
the prompt variable in the bash (and ksh, sh, zsh) shell is call $PS1. for example my prompt :
export PS1="`id |cut -d '(' -f2|cut -d ')' -f1' '`@`uname -n` # "
which produce:
pressy@computer #
greetings PRESSY
pressy
View Public Profile
Visit pressy's homepage!
Find all posts by pressy
Find pressy's past nominations received
Find pressy's present nominations given