completions: Add missing options for our builtins

This commit is contained in:
Fabian Boehm
2025-01-29 20:38:41 +01:00
parent 66f1aba0f2
commit ba193665e2
3 changed files with 3 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ complete -c read -s P -l prompt-str -d "Set prompt using provided string" -x
complete -c read -s x -l export -d "Export variable to subprocess"
complete -c read -s g -l global -d "Make variable scope global"
complete -c read -s l -l local -d "Make variable scope local"
complete -c read -s f -l function -d "Make variable function-scoped"
complete -c read -s U -l universal -d "Share variable with all the users fish processes on the computer"
complete -c read -s u -l unexport -d "Do not export variable to subprocess"
complete -c read -s c -l command -d "Initial contents of read buffer when reading interactively" -r

View File

@@ -89,6 +89,7 @@ complete -c set -n "__fish_is_nth_token 1" -s p -l prepend -d "Prepend value to
complete -c set -n "__fish_is_nth_token 1" -s S -l show -d "Show variable"
complete -c set -n "__fish_is_nth_token 1" -l path -d "Make variable as a path variable"
complete -c set -n "__fish_is_nth_token 1" -l unpath -d "Make variable not as a path variable"
complete -c set -n "__fish_is_nth_token 1" -l no-event -d "Don't emit an event"
#TODO: add CPP code to generate list of read-only variables and exclude them from the following completions

View File

@@ -5,6 +5,7 @@ complete -c type -s t -l type -d "Print command type"
complete -c type -s p -l path -d "Print path to command, or nothing if name is not a command"
complete -c type -s P -l force-path -d "Print path to command"
complete -c type -s q -l query -l quiet -d "Check if something exists without output"
complete -c type -s s -l short -d "Don't print function definition"
complete -c type -a "(builtin -n)" -d Builtin
complete -c type -a "(functions -n)" -d Function