From 6e1759433b3d8e861e6146fcf9bd7a70735ec675 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 2 Sep 1999 16:44:59 +0000 Subject: zsh-workers/7632 --- Functions/Zftp/zfinit | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Functions/Zftp/zfinit') diff --git a/Functions/Zftp/zfinit b/Functions/Zftp/zfinit index 2a5fd9b47..0bc619277 100644 --- a/Functions/Zftp/zfinit +++ b/Functions/Zftp/zfinit @@ -2,6 +2,11 @@ emulate -L zsh [[ $1 = -n ]] || zmodload -e zftp || zmodload -ia zftp +if [[ ${+zfconfig} = 0 ]]; then + typeset -gA zfconfig + zfconfig=(progress bar update 1) +fi + alias zfcd='noglob zfcd' alias zfget='noglob zfget' alias zfls='noglob zfls' @@ -13,15 +18,15 @@ autoload -U zfdir zfgcp zfget zfget_match zfgoto zfhere zfinit zfls autoload -U zfmark zfopen zfparams zfpcp zfput zfrglob zfrtime zfstat autoload -U zftp_chpwd zftp_progress zftype zfuget zfuput -# only way of getting that noglob out of the way: this is unnecessary with -# widget-based completion and can be commented out. -setopt completealiases - # # zftp completions: only use these if new-style completion is not # active. # if [[ ${#_patcomps} -eq 0 || ${_patcomps[(i)zf*]} -gt ${#_patcomps} ]]; then + # only way of getting that noglob out of the way: this is unnecessary with + # widget-based completion + setopt completealiases + compctl -f -x 'p[1]' \ -k '(open params user login type ascii binary mode put putat get getat append appendat ls dir local remote mkdir rmdir delete -- cgit 1.4.1