summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1995-12-18 16:52:49 +0000
committerderaadt <deraadt@openbsd.org>1995-12-18 16:52:49 +0000
commita1df5dca44bfd4e8ab3070d4763d093fec2b7925 (patch)
tree3345e04b423dd2915280da3d511d52a8b1896251
parentupdate from netbsd (diff)
downloadwireguard-openbsd-a1df5dca44bfd4e8ab3070d4763d093fec2b7925.tar.xz
wireguard-openbsd-a1df5dca44bfd4e8ab3070d4763d093fec2b7925.zip
reset prompt on cd, pushd, and popd
-rw-r--r--share/skel/dot.cshrc8
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