The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-23-2005
pressy's Avatar
pressy pressy is offline
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
Reply With Quote