From 46c253b9d6804c6e03bda9bc2c6c297bfdb9ce61 Mon Sep 17 00:00:00 2001 From: Akatsuki <3736910+akiirui@users.noreply.github.com> Date: Thu, 14 May 2020 01:42:41 +0800 Subject: [PATCH] completions/set: add --path and --unpath Add missing options: --path causes the specified variable to be treated as a path variable, meaning it will automatically be split on colons, and joined using colons when quoted (echo "$PATH") or exported. --unpath causes the specified variable to not be treated as a path variable. Variables with a name ending in "PATH" are automatically path variables, so this can be used to treat such a variable normally. [ci skip] --- share/completions/set.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/completions/set.fish b/share/completions/set.fish index f4efb1674..714248471 100644 --- a/share/completions/set.fish +++ b/share/completions/set.fish @@ -80,6 +80,8 @@ complete -c set -n __fish_is_first_token -s n -l names -d "List the names of the complete -c set -n __fish_is_first_token -s a -l append -d "Append value to a list" complete -c set -n __fish_is_first_token -s p -l prepend -d "Prepend value to a list" complete -c set -n __fish_is_first_token -s S -l show -d "Show variable" +complete -c set -n __fish_is_first_token -l path -d "Make variable as a path variable" +complete -c set -n __fish_is_first_token -l unpath -d "Make variable not as a path variable" #TODO: add CPP code to generate list of read-only variables and exclude them from the following completions