Subject: Re: Current dir in prompt?
To: None <amiga@NetBSD.ORG>
From: Al Chetham <achetham@mtvmail-114.Corp.Sun.COM>
List: amiga
Date: 12/21/1995 10:28:02
Try this:
alias cd 'set old=$cwd; chdir \!*;set prompt="`hostname`:$cwd:t-\! "'
alias back 'set back=$old; set old=$cwd; cd $back; unset back; dirs'
alias pushd 'pushd \!*;set prompt="`hostname` {$cwd:t} \! : "'
alias popd 'popd \!*;set prompt="`hostname` {$cwd:t} \! : "'
Al Chetham
NAAFO Technoloy Center Engineer
Sun Microsystems
achetham@Corp.Sun.COM
415-336-9747