From ce9d10e465acd5a5641778154d176fd737d47eed Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 15 Dec 1999 21:33:36 +0000 Subject: zsh-workers/9067 --- Functions/Zftp/zftp_chpwd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Functions/Zftp/zftp_chpwd') diff --git a/Functions/Zftp/zftp_chpwd b/Functions/Zftp/zftp_chpwd index 4c23e83bf..cd4560540 100644 --- a/Functions/Zftp/zftp_chpwd +++ b/Functions/Zftp/zftp_chpwd @@ -22,14 +22,13 @@ if [[ -z $ZFTP_USER ]]; then zfconfig[lastdir_$ZFTP_SESSION]= # return the display to standard - # uncomment the following line if you have a chpwd which shows directories - chpwd + zstyle -t ":zftp$curcontext" chpwd && chpwd else [[ -n $ZFTP_PWD ]] && zfconfig[lastdir_$ZFTP_SESSION]=$ZFTP_PWD zfconfig[lastloc_$ZFTP_SESSION]="$ZFTP_HOST:$ZFTP_PWD" zfconfig[lastuser_$ZFTP_SESSION]="$ZFTP_USER" local args - if [[ -t 1 && -t 2 ]]; then + if [[ -t 1 && -t 2 ]] && zstyle -t ":zftp$curcontext" titlebar; then local str=$zfconfig[lastloc_$ZFTP_SESSION] [[ ${#str} -lt 70 ]] && str="%m: %~ $str" case $TERM in -- cgit 1.4.1