add more options to set completion

This commit is contained in:
raichoo 2018-07-24 14:22:30 +02:00 committed by David Adam
parent 8440d9ba86
commit eb3541be86

View file

@ -65,6 +65,9 @@ complete -c set -n '__fish_is_first_token' -s U -l universal -d "Share variable
complete -c set -n '__fish_is_first_token' -s q -l query -d "Test if variable is defined" complete -c set -n '__fish_is_first_token' -s q -l query -d "Test if variable is defined"
complete -c set -n '__fish_is_first_token' -s h -l help -d "Display help and exit" complete -c set -n '__fish_is_first_token' -s h -l help -d "Display help and exit"
complete -c set -n '__fish_is_first_token' -s n -l names -d "List the names of the variables, but not their value" complete -c set -n '__fish_is_first_token' -s n -l names -d "List the names of the variables, but not their value"
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"
#TODO: add CPP code to generate list of read-only variables and exclude them from the following completions #TODO: add CPP code to generate list of read-only variables and exclude them from the following completions