Skip to content
Snippets Groups Projects
Commit 4c2977b0 authored by Recolic K's avatar Recolic K
Browse files

cleanup and completion

parent a961afb8
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ function __antidote_count_cmdline_args
# It take care of quotes and escaped space.
#
# Note that, "antidote-cis push " counts as 3, because empty argument also counts! This is especially useful for completion.
set -l cleaned_cmdline (commandline -p | string replace --regex -a '\\\\.' '' | string replace --regex -a '"[^"]*"' '' | string replace --regex -a "'[^']*'" '')
set -l cleaned_cmdline (commandline -p | string replace --regex -a '\\\\.' '' | string replace --regex -a '"[^"]*"' '' | string replace --regex -a "'[^']*'" '' | string replace --regex -a ' +' ' ')
count (echo $cleaned_cmdline | string split ' ')
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment