mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
33 lines
3 KiB
Fish
33 lines
3 KiB
Fish
set -l commands store restore nrestore init daemon rdaemon kill monitor
|
|
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "store" -d "Save current driver state" -f
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "restore" -d "Load driver state" -f
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "nrestore" -d "Restore and rescan for available soundcards" -f
|
|
complete -c alsactl -s F -l force -n "__fish_seen_subcommand_from restore nrestore" --description 'Try to restore control elements as much as possible' -f
|
|
complete -c alsactl -s g -l ignore -n "__fish_seen_subcommand_from store restore nrestore" --description 'Ignore missing soundcards' -f
|
|
complete -c alsactl -s P -l pedantic -n "__fish_seen_subcommand_from restore nrestore" --description 'Do not restore mismatching control elements' -f
|
|
complete -c alsactl -s I -l no-init-fallback -n "__fish_seen_subcommand_from restore nrestore" --description 'Do not init if restore fails' -f
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "init" -d "Initialize all devices to a default state" -f
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "daemon" -d "Periodically save state" -f
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "rdaemon" -d "Restore state and then periodically save it" -f
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "kill" -d "Notify daemon to do an operation" -f
|
|
complete -c alsactl -n "not __fish_seen_subcommand_from $commands" -a "monitor" -d "Monitor events" -f
|
|
|
|
complete -c alsactl -s h -l help --description 'Show available flags and commands' -f
|
|
complete -c alsactl -s d -l debug --description 'Make output a bit more verbose' -f
|
|
complete -c alsactl -s v -l version --description 'Print alsactl version number' -f
|
|
complete -c alsactl -s f -l file --description 'Select the configuration file to use'
|
|
complete -c alsactl -s l -l lock --description 'Use a lock file'
|
|
complete -c alsactl -s L -l no-lock --description 'Do not use a lock file'
|
|
complete -c alsactl -s O -l lock-state-file --description 'Select the state lock file path'
|
|
complete -c alsactl -s r -l runstate --description 'Save restore and init state to this file'
|
|
complete -c alsactl -s R -l remove --description 'Remove runstate file at first'
|
|
complete -c alsactl -s E -l env --description 'Set environment variable'
|
|
complete -c alsactl -s i -l initfile --description 'The configuration file for init'
|
|
complete -c alsactl -s p -l period --description 'The store period in seconds for the daemon command' -f
|
|
complete -c alsactl -s e -l pid-file --description 'The PID file to use'
|
|
complete -c alsactl -s b -l background --description 'Run the task in background'
|
|
complete -c alsactl -s s -l syslog --description 'Use syslog for messages'
|
|
complete -c alsactl -s n -l nice --description 'Set the process priority (see \'man nice\')' -a "(seq -20 19)"
|
|
complete -c alsactl -s c -l sched-idle --description 'Set the process scheduling policy to idle (SCHED_IDLE)'
|
|
|