My .prompt file
The lines in typewriter font are from the original file. Comments follow in the bullets.
#
umask 022
- Make the default protection 755 (the octal complement).
if ($slevel == 0) then
alias getprompt 'set prompt="! ${THISHOST}\\\!$cwd:t> "'
else
alias getprompt 'set prompt="! ${slevel} ${THISHOST}\\\!$cwd:t>
"'
endif
- Defines a function getprompt which makes my prompt include my user name and current
directory.
alias cd 'cd \!*; getprompt'
alias pushd 'pushd \!*; getprompt'
alias popd 'popd \!*; getprompt'
- Any time I change to a new directory, run getprompt.
getprompt
- Run getprompt when you first start a shell.