prompt_simple_setup(7) Mac OS X Darwin ZSH Customizations prompt_simple_setup(7) NAME prompt_simple_setup - function defining a very simple prompt (zsh-% in boldface for the local user), accompanied by dynamically updated title bar and tab labels. Issue the command prompt_simple_help for more information. prompt simple [color1[color2[color3[string1[string2[string3]]]]]] Supply up to three colors and then up to three alternate static prompt strings . color1 is the local prompt color: zsh-% color1=default color2 is the remote prompt color: $HOST:r:r-% color2=red color3 is the screensession prompt color: Screen-% color3=default Allowed colorN options include: default, black, red, green, yellow, blue, magenta, cyan, white stringN can be any (non-dynamic) text string or prompt special characters (eg: %m) All dynamic updating is relegated to the title bar and (if present, tabs) so that the prompt content may be kept to a minimum. The prompt function now incorporates the successor to settab and settitle functions (as well as the chpwd function) within it. It avoids the explicit definition and use of special functions (as of zsh-4.3.4) such as chpwd, precmd, preexec, instead setting appropriate arrays. This is to prevent conflicts with user's prompt functions and so forth. (For older versions, it still uses these functions, but does so in such a way to try to minimize the chance of clobbering prior directives). This is designed to put by default the computer name and whole directory path into the title bar (and if availble) the $PWD and penultimate directory in the tab. Also enables transient display of a running command (eg vim). Currently works with iTerm (OSX) and konsole (KDE) tabs, and should work with any standard X-like term (and Apple's Terminal.app). SYNOPSIS prompt_simple_setup AUTHOR William Scott MAINTAINER W. G. Scott wgscott@users.sourceforge.net Mac OS X August 5, 2005 prompt_simple_setup(7)