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
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
customize my prompt in bash
View Single Post in UNIX 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: 712
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