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 | 006e9b9afba10e2e64d86538fe5777376c8f0f57 (diff) | |
download | zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.gz zsh-183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef.tar.xz 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}" |