Prompt changing on the fly
Charles Shub
cdash at boulder.UUCP
Tue Jan 20 10:52:26 AEST 1987
In article <432 at ethz.UUCP> wyle at ethz.UUCP (Mitchell Wyle) writes:
>Does anyone out there have a shell script / program to change
>the prompt DYNAMICALLY after each [CR]?
>
it is simple to define a command/alias to set your prompt and then redefine
commands to also set your prompt
alias cd 'chdir \!*;SP'
alias SP 'set prompt="$MACHINE-`basename $cwd` \! > "'
then the prompt does what you want
More information about the Comp.unix.wizards
mailing list