diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 21:33:36 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 21:33:36 +0000 |
commit | ce9d10e465acd5a5641778154d176fd737d47eed (patch) | |
tree | 4a82590f469b3eae8ffb3ab1d027406d6bad3f9e /Functions/Zftp/zftp_chpwd | |
parent | 03e230cc54103d18e9c8a18208c7d27805400a71 (diff) | |
download | zsh-ce9d10e465acd5a5641778154d176fd737d47eed.tar.gz zsh-ce9d10e465acd5a5641778154d176fd737d47eed.tar.xz zsh-ce9d10e465acd5a5641778154d176fd737d47eed.zip |
zsh-workers/9067
Diffstat (limited to 'Functions/Zftp/zftp_chpwd')
-rw-r--r-- | Functions/Zftp/zftp_chpwd | 5 |
1 files changed, 2 insertions, 3 deletions
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 |