Near Matches
Ignore Exact
Everything
2
How to include the working directory in your UNIX prompt (idea)
See all of How to include the working directory in your UNIX prompt
, no other writeups in this node.
(
idea
)
by
Kung
Thu Jun 14 2001 at 3:34:14
I can never remember how to do this since it varies with the
shell
and its always hard to find by
RTFM
ing.
so
without further ado
..
ksh
export PS1='$PWD>'
bash
PS1='\w>'
zsh
export PS1='%~>'
tcsh
set prompt='%~>'
csh
alias cd 'chdir \!* && set prompt="`pwd`>"'
sh
cd() { chdir $* ; PS1="`pwd` >"; }
bash
ksh
csh
RTFM
/usr
zsh
sh
tcsh
Linux