CSH script help needed

Terry Laskodi terryl at teklabs.UUCP
Sun Jan 8 19:03:18 AEST 1984


     Well, if you're using a 4.1-based CSH (or later), then there's a really
easy way to do it just with aliases!!! No C-shell scripts needed!!!

alias cd 'cd \!*;set prompt="$cwd"'
alias pushd 'pushd \!*;set prompt="$cwd"'
alias popd 'popd;set prompt="$cwd"'

     Quotes must be used exactly as above, but any other strings can be put
in the set prompt string.



More information about the Comp.unix.wizards mailing list