1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

20232 with typo corrected: remove zftp directory listing on zfcd

This commit is contained in:
Peter Stephenson 2004-08-06 14:10:30 +00:00
parent 2a2ddb36a4
commit de79a24999
2 changed files with 8 additions and 2 deletions

View file

@ -48,8 +48,11 @@ fi
# if we want to keep it.
local lastdir=$ZFTP_PWD
zftp cd "$@" && [[ $lastdir != $ZFTP_PWD ]] &&
zfconfig[lastdir_$ZFTP_SESSION]=$lastdir
if zftp cd "$@" && [[ $lastdir != $ZFTP_PWD ]]; then
# Invalidate current directory listing.
rm -f $zfconfig[curdir_$ZFTP_SESSION]
zfconfig[lastdir_$ZFTP_SESSION]=$lastdir
fi
print $zfconfig[lastloc_$ZFTP_SESSION]
# }