diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-25 10:35:15 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-25 10:35:15 +0000 |
commit | 475aca3cb2d779f7a8c9dfbf05afa7d94250a46c (patch) | |
tree | 4d63a3d266094e29e987bc2e8224c57cb804b46e /Completion | |
parent | 1d63a688d91b116cc0834eecb0cb001fb177b91d (diff) | |
download | zsh-475aca3cb2d779f7a8c9dfbf05afa7d94250a46c.tar.gz zsh-475aca3cb2d779f7a8c9dfbf05afa7d94250a46c.tar.xz zsh-475aca3cb2d779f7a8c9dfbf05afa7d94250a46c.zip |
zsh-workers/8777
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_normal | 4 | ||||
-rw-r--r-- | Completion/Core/_sort_tags | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Completion/Core/_normal b/Completion/Core/_normal index f31e7e6fc..f7d797aaa 100644 --- a/Completion/Core/_normal +++ b/Completion/Core/_normal @@ -26,14 +26,16 @@ else if [[ "$command[1]" == '=' ]]; then eval cmd1\=$command cmd2="$command[2,-1]" + curcontext="${curcontext}::${cmd1}:" elif [[ "$command" == */* ]]; then cmd1="$command" cmd2="${command:t}" + curcontext="${curcontext}::${cmd1}:" else cmd1="$command" cmd2="$commands[$command]" + curcontext="${curcontext}::${cmd1}:" fi - curcontext="${curcontext}:${cmd1}" fi # See if there are any matching pattern completions. diff --git a/Completion/Core/_sort_tags b/Completion/Core/_sort_tags index f44479d56..6f07eec1c 100644 --- a/Completion/Core/_sort_tags +++ b/Completion/Core/_sort_tags @@ -6,17 +6,17 @@ comptry options case "$curcontext" in # Some silly examples commented out: # -# *p[bgpn]m*) # change the order for file-completion +# *::*p[bgpn]m:*) # change the order for file-completion # comptry globbed-files directories # comptry all-files # ;; -# *:dvips:-o*) # automatic context set by _arguments +# *::dvips::-o*) # automatic context set by _arguments # comptry all-files # return # ;; -# *:kill:*) +# *::kill:*) # comptry processes -# return # this return ensures that we use only processes +# return # this return ensures that we use only processes # ;; *) comptry globbed-files |