[nycbug-talk] PROMPT_COMMAND in zsh?

George Georgalis george
Sun Jun 26 17:22:58 EDT 2005


I'm trying to find a "bash PROMPT_COMMAND" equivalant for zsh,
eg in bash I use...

# If this is an xterm set the title to user at host:dir
case $TERM in
  xterm*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    ;;
  *)
    ;;
esac


in my bashrc ...which is handy, is there a way in zsh?

// George

-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george at galis.org




More information about the talk mailing list