From 0c4ede56272ada6d3ec67406e3f9aca91c5abd0f Mon Sep 17 00:00:00 2001 From: Fabian Weisshaar Date: Sat, 5 Nov 2016 19:23:38 +0100 Subject: [PATCH] add nvram completion --- share/completions/nvram.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 share/completions/nvram.fish diff --git a/share/completions/nvram.fish b/share/completions/nvram.fish new file mode 100644 index 000000000..1b5e501b5 --- /dev/null +++ b/share/completions/nvram.fish @@ -0,0 +1,12 @@ +# completion for nvram (macOS) + +function __fish_nvram_variables + command nvram -p +end + +complete -c nvram -s x -f -d 'Use XML format for reading and writing variables' +complete -c nvram -s p -f -d 'Print all of the firmware variables' +complete -c nvram -s f -r -d 'Set firmware variables from a text file' +complete -c nvram -s d -x -a '(__fish_nvram_variables)' -d 'Deletes the named firmware variable' +complete -c nvram -s c -f -d 'Delete all of the firmware variable' +complete -c nvram -x -a '(__fish_nvram_variables)'