Near Matches
Ignore Exact
Full Text
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
Sign In
Login
Password
Remember me
Lost password
Sign Up
Need help?
accounthelp@everything2.com
Recommended Reading
About Everything2
User Picks
Meow Wolf
Weird Coffee Person
Shark bite
Meow Wolf
Paloma
Meow Wolf
August 9, 2025
I miss the way you were before you figured out that I'm not yours
August 9, 2025
I miss the way you were before you figured out that I'm not yours
I miss the way you were before you figured out that I'm not yours
The Seasons Reverse
Clear As
Life is Like the Ocean
Clear Lake massacre
Vilnius
If You Were There and You Couldn't Cry
Clear As
Jeff
Carbon nanotube tweezers
Jeff
Shark
I miss the way you were before you figured out that I'm not yours
pourover coffee
Third wave coffee
Rocking slightly, reading the newspaper aloud to himself and everyone else on the bus
If I could be anything I'd be water and I'd be wild about it.
French adverbs of Negation
Her hips made waves against his shore
Rodan
Editor Picks
Lord of the Rings food
Latin
Twenty-three good things about pickles and dirt
A little bit tired, a little bit drunk, all yours
Are you ready for the skeletons? ARE YOU READY FOR THE FUCKING SKELETON REVOLUTION?
Gordon Cooper
Homemade household cleaning agents
Body language
Newton's Rape Manual and other surprises
Genus Corvus
Fifteen Men on a Dead Man's Chest
American flag etiquette
One Got Fat
Lolita
How not to beat Jet Li's kung-fu style in "Fist of Legend"
New Writeups
Meow Wolf
(
place
)
by
liha
solutomaattimittaamotulos
(
thing
)
by
Trar
Weird Coffee Person
(
person
)
by
wertperch
August 9, 2025
(
place
)
by
JD
If You Were There and You Couldn't Cry
(
poetry
)
by
lostcauser
I miss the way you were before you figured out that I'm not yours
(
fiction
)
by
etouffee
pourover coffee
(
thing
)
by
wertperch
Food and drink
(
thing
)
by
Pandeism Fish
Third wave coffee
(
thing
)
by
wertperch
Clear As
(
poetry
)
by
Girldoll
(
more
)