Korn Shell Question

mike at ntvax.UUCP mike at ntvax.UUCP
Thu Oct 23 06:46:00 AEST 1986


I have a Korn Shell question that perhaps someone can answer. I like to
have as my system prompt my current path. When I use csh, I set up my
.cshrc file with these entries:
  
set prompt = "! `pwd`}"  -- this establishes my prompt as my command number
			    and current path when i first initiate the shell

alias cd 'chdir \!:1; set prompt=\!\`pwd`}\'
			    this sets up my cd command to not only change
			    my working directory but to change the prompt.

I would like to have something similar to this in ksh but I'm not sure how
to change PSx on the fly. Has someone done something similar to this??

Any help would be greatly appreciated.


      
      |######################################|
      |#         J. Michael Flanery         #|
      |#        Computer Science Dept.      #|
      |#     North Texas State University   #|
      |#   UUCP: {ihnp4}!infoswx!ntvax!mike #|
      |######################################|



More information about the Comp.unix mailing list