fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
0df6fa791
master
1#disable file selection 2complete -f tuned-adm 3 4#get profile list 5set profiles( tuned-adm list2>&1 < /dev/null| awk '{print $2}' | tail -n+2 | head -n-1 ) 6 7# all tuned-adm actions 8set -l actions list available profiles active off profile profile_info recommend verify auto_profile profile_mode 9 10#first argument 11complete -k -c tuned-adm -n"test (__fish_number_of_cmd_args_wo_opts) = 1" \ 12 -xa" $actions " 13 14# second argument for profile subcommand 15complete -k -c tuned-adm -n"test (__fish_number_of_cmd_args_wo_opts) = 2; and __fish_seen_subcommand_from profile" \ 16 -xa" $profiles " 17 18#options 19complete -k -c tuned-adm -s h -l help -d"show this help message and exit" 20complete -k -c tuned-adm -s v -l version -d"show program's version number and exit" 21complete -k -c tuned-adm -s d -l debug -d"show debug messages" 22complete -k -c tuned-adm -s a -l async -d"with dbus do not wait on commands completion and return immediately" 23complete -k -c tuned-adm -s t -l timeout -d"with sync operation use specific timeout instead of the default 600 second(s)" 24complete -k -c tuned-adm -s l -l loglevel -d"level of log messages to capture"