diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-02 16:44:59 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-02 16:44:59 +0000 |
commit | 6e1759433b3d8e861e6146fcf9bd7a70735ec675 (patch) | |
tree | 8e736c83a6a4b0a314af123aa8660f8cdeefe3d0 /Functions/Zftp/zfinit | |
parent | 8b3e5404ce0fad4ebe457eb521b0b487221faf6a (diff) | |
download | zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.tar.gz zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.tar.xz zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.zip |
zsh-workers/7632
Diffstat (limited to 'Functions/Zftp/zfinit')
-rw-r--r-- | Functions/Zftp/zfinit | 13 |
1 files changed, 9 insertions, 4 deletions
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 |