diff options
author | 1995-12-18 16:52:49 +0000 | |
---|---|---|
committer | 1995-12-18 16:52:49 +0000 | |
commit | a1df5dca44bfd4e8ab3070d4763d093fec2b7925 (patch) | |
tree | 3345e04b423dd2915280da3d511d52a8b1896251 | |
parent | update from netbsd (diff) | |
download | wireguard-openbsd-a1df5dca44bfd4e8ab3070d4763d093fec2b7925.tar.xz wireguard-openbsd-a1df5dca44bfd4e8ab3070d4763d093fec2b7925.zip |
reset prompt on cd, pushd, and popd
-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 |