diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:42:40 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:42:40 +0000 |
commit | e4b24d44205417e4b5f6b141226515c65d03eb0f (patch) | |
tree | e8fc72f74a1782445c026f734ab886d596d08eba /Completion | |
parent | 3c927a1cc94251b0e2fd658180c09de369e8ac9f (diff) | |
download | zsh-e4b24d44205417e4b5f6b141226515c65d03eb0f.tar.gz zsh-e4b24d44205417e4b5f6b141226515c65d03eb0f.tar.xz zsh-e4b24d44205417e4b5f6b141226515c65d03eb0f.zip |
moved to Completion/Unix/Type/_tilde_files
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_tilde_files | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Completion/User/_tilde_files b/Completion/User/_tilde_files deleted file mode 100644 index 6fb393dc5..000000000 --- a/Completion/User/_tilde_files +++ /dev/null @@ -1,38 +0,0 @@ -#autoload - -# Complete files and expand tilde expansions in it. - -if (( $argv[(I)-W*] )); then - _files "$@" - return -fi - -case "$PREFIX" in -\~/*) - IPREFIX="${IPREFIX}${HOME}/" - PREFIX="${PREFIX[3,-1]}" - _files "$@" -W "${HOME}" - ;; -\~*/*) - local user="${PREFIX[2,-1]%%/*}" - - if (( $+userdirs[$user] )); then - user="$userdirs[$user]" - elif (( $+nameddirs[$user] )); then - user="$nameddirs[$user]" - else - _message "unknown user \`$user'" - return 1 - fi - IPREFIX="${IPREFIX}${user%/}/" - PREFIX="${PREFIX#*/}" - _files "$@" -W "$user" - ;; -\~*) - compset -P '?' - _users "$@" - ;; -*) - _files "$@" - ;; -esac |