diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-18 16:52:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-18 16:52:50 +0000 |
commit | 253a65898626cc25231cd1167574b96a525842ed (patch) | |
tree | e0adffc3c2d0bc485ef084373d415decf9eb3243 /share/skel | |
parent | a9a7dd72a1e9d2784bec77d29a6b138413086694 (diff) |
reset prompt on cd, pushd, and popd
Diffstat (limited to 'share/skel')
-rw-r--r-- | share/skel/dot.cshrc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/skel/dot.cshrc b/share/skel/dot.cshrc index d1e8a36ee1e..fb290ccb6c8 100644 --- a/share/skel/dot.cshrc +++ b/share/skel/dot.cshrc @@ -22,6 +22,10 @@ if ($?prompt) then set ignoreeof set mail = (/var/mail/$USER) set mch = `hostname -s` - set prompt = "$mch:q:$cwd:t {\!} " - umask 2 + alias prompt 'set prompt = "$mch:q"":$cwd:t {\!} "' + alias cd 'cd \!*; prompt' + alias popd 'popd \!*; prompt' + alias pushd 'pushd \!*; prompt' + cd . + umask 22 endif |