diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-26 15:05:37 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-26 15:05:37 +0000 |
| commit | 183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef (patch) | |
| tree | 5cc0321cfadd91445aaa40fe9709ee15ae127697 /Completion/Core/_normal | |
| parent | change $words[1] to $service in some more places (13534) (diff) | |
| download | zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.gz zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.bz2 zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.lz zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.xz zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.zst zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.zip | |
some small functions for completing sub-commands (generic function, init scripts, apachectl) (13536)
Diffstat (limited to 'Completion/Core/_normal')
| -rw-r--r-- | Completion/Core/_normal | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Core/_normal b/Completion/Core/_normal index 02229835a..364a56764 100644 --- a/Completion/Core/_normal +++ b/Completion/Core/_normal @@ -30,6 +30,10 @@ else eval cmd1\=$command cmd2="$command[2,-1]" curcontext="${curcontext%:*:*}:${cmd2}:" + elif [[ "$command" = ..#/* ]]; then + cmd1="${PWD}/$command" + cmd2="${command:t}" + curcontext="${curcontext%:*:*}:${cmd2}:" elif [[ "$command" = */* ]]; then cmd1="$command" cmd2="${command:t}" |
