From 7c2e05f223b01ec63c2dcbffefc58bbf39a420ab Mon Sep 17 00:00:00 2001 From: EmilySeville7cfg Date: Thu, 25 Nov 2021 17:45:57 +1000 Subject: [PATCH] Completion for forfiles command --- share/completions/forfiles.fish | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 share/completions/forfiles.fish diff --git a/share/completions/forfiles.fish b/share/completions/forfiles.fish new file mode 100644 index 000000000..bf101fa72 --- /dev/null +++ b/share/completions/forfiles.fish @@ -0,0 +1,10 @@ +function __forfiles_generate_args --description 'Function to generate args' + echo -e '/P\tSpecify the path from which to start the search +/M\tSearch files according to the specified search mask +/S\tInstruct the forfiles command to search in subdirectories recursively +/C\tRun the specified command on each file +/D\tSelect files with a last modified date within the specified time frame +/?\tShow help' +end + +complete --command forfiles --no-files --arguments '(__forfiles_generate_args)'