mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
completions: Add missing options for our builtins
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user