From 183f6b06d09fa3ed143a098f2fc5f7b6c17af7ef Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 26 Feb 2001 15:05:37 +0000 Subject: some small functions for completing sub-commands (generic function, init scripts, apachectl) (13536) --- Completion/Core/_normal | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Completion/Core/_normal') 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}" -- cgit 1.4.1