From 1bd01436d925d095f4525e20ddf5dfca093ce653 Mon Sep 17 00:00:00 2001 From: EmilySeville7cfg Date: Thu, 25 Nov 2021 19:46:22 +1000 Subject: [PATCH] Completion for setx command --- share/completions/setx.fish | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 share/completions/setx.fish diff --git a/share/completions/setx.fish b/share/completions/setx.fish new file mode 100644 index 000000000..b31aca7d5 --- /dev/null +++ b/share/completions/setx.fish @@ -0,0 +1,15 @@ +function __setx_generate_args --description 'Function to generate args' + echo -e '/u\tSpecify the name or IP address of a remote computer +/p\tSpecify the password of the user account that is specified in the /u parameter +/f\tSpecify the file that you want to use +/d\tSpecify delimiters to be used in addition to the four built-in delimiters +/?\tShow help' + + if not __fish_seen_argument --windows '/a' --windows '/m' --windows '/x' + echo -e '/a\tSpecify absolute coordinates and offset as search parameters +/m\tSpecify to set the variable in the system environment +/x\tDisplay file coordinates, ignoring the /a, /r, and /d command-line options' + end +end + +complete --command setx --no-files --arguments '(__setx_generate_args)' \ No newline at end of file