Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: .rshexec Up: Environment Previous: .profile

Subsections



.prompt

Set the prompt variable for csh-like shells.

Synopsis

alias cd 'chdir \!*; source $AIPSROOT/.prompt'
source $AIPSROOT/.prompt

Description

The cd command is aliased in .cshrc (p[*]) to invoke .prompt whenever the current working directory is changed (as above).

For csh and tcsh running in xterm, suntool, and cmdtool windows, .prompt encodes an escape sequence in the prompt shell variable which identifies the subprocess depth, the user and host names, and current working directory in the window label, and also the host name and command number in the interactive prompt.

Since csh in some systems does not process escape sequences encoded into the prompt variable (for example, AIX and Solaris 2.2), .prompt recognizes a shell variable noAutoWinLabel which causes it simply to echo the escape sequence on stdout and set prompt to print the host name and command number. However, this method fails to reset the window label on logout from a subshell.

For other windows or ordinary terminals .prompt simply encodes the user and host names, the last two elements of the current working directory, and command number into the prompt shell variable.

See also

AIPS++ variable names (§1.2).
.cshrc (p[*]), aips2mgr's .cshrc file.

Author

Original: 1992/05/01 by Mark Calabretta, ATNF.


next up previous contents index
Next: .rshexec Up: Environment Previous: .profile   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15