diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:13:59 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:13:59 +0000 |
commit | 041ccf77516b667f6553913246672c0c934dc8ed (patch) | |
tree | ad461406f6dc897efc61fc445bc1a63d618c9b0a | |
parent | 06e7790548e944ec46e25d6961523e59aa6ba5f1 (diff) | |
download | zsh-041ccf77516b667f6553913246672c0c934dc8ed.tar.gz zsh-041ccf77516b667f6553913246672c0c934dc8ed.tar.xz zsh-041ccf77516b667f6553913246672c0c934dc8ed.zip |
moved to Completion/Base/Widget/_bash_completions
-rw-r--r-- | Completion/Commands/_bash_completions | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/Completion/Commands/_bash_completions b/Completion/Commands/_bash_completions deleted file mode 100644 index 6980e8bfd..000000000 --- a/Completion/Commands/_bash_completions +++ /dev/null @@ -1,46 +0,0 @@ -#compdef -K _bash_complete-word complete-word \e~ _bash_list-choices list-choices ^X~ -# -# This function is for bash compatibility. As some of the bash bindings -# are already taken up in zsh, only Esc ~ and \C-x ~ are bound, and -# you must add the rest by hand. The bindings expected are: -# -# Esc ! -> command name -# Esc $ -> environment variables -# Esc @ -> machine names -# Esc / -> file name -# Esc ~ -> a user name -# -# C-x instead of Esc with one of the above will list matches and won't -# attempt any completion. -# -# The following will bind the remaining set; simply put it in .zshrc -# after compinit is run. -# -# for key in '!' '$' '@' '/'; do -# bindkey "\e$key" _bash_complete-word -# bindkey "^X$key" _bash_list-choices -# done -# -# If for some reason \e~ or ^X~ were already bound to something else, -# that will not have been overridden, so you should add '~' to the -# list of keys at the top of the for-loop. - -setopt localoptions ${_comp_options[@]} - -local key=$KEYS[-1] expl - -case $key in - '!') _main_complete _command_names - ;; - '$') _main_complete - parameters _wanted parameters expl 'exported parameters' \ - _parameters -g '*export*' - ;; - '@') _main_complete _hosts - ;; - '/') _main_complete _files - ;; - '~') _main_complete _users - ;; - *) _message "Key $key is not understood" - ;; -esac |