Re^2: Getting UNIX prompt to display curr

Maarten Litmaath maart at cs.vu.nl
Thu Mar 23 14:05:08 AEST 1989


rostamia at umbc3.UMBC.EDU (Rouben Rostamian) writes:
\alias cd cd \!\*\; set prompt = \
\  pwd \| awk \'BEGIN \{FS=\"/\"\} \{print \$\'NF\'\}\'\`\"\> \"

	alias cd 'chdir \!*; set prompt="$cwd:t> "'

\alias asdf cd \!\*\; set prmpt = \`pwd \| awk \'BEGIN \{FS=\"/\"\} \
\       \{cnt = NF\; cnt -- \; \
\        printf \"\%-1s/\%-1s\>\", \$\'cnt\', \$\'NF\' \}\'\` \; \
\        set prompt = \"\$prmpt \"

	alias cd 'chdir \!*; set par=$cwd:h; set prompt="$par:t/$cwd:t> "'
-- 
 Modeless editors and strong typing:   |Maarten Litmaath @ VU Amsterdam:
   both for people with weak memories. |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list