FISH-COMPLETIONS(1) fish-shell FISH-COMPLETIONS(1) (NAME) fish-completions - fish (DESCRIPTION) complete . complete . myprog ( myprog.exe Cygwin/MSYS2 <# completions-cygwin>) complete -c myprog ... . complete complete <> fish complete --help . myprog -a . myprog start stop complete -c myprog -a 'start stop' . -a . () : # myprog list-outputs : complete -c myprog -l output -a '(myprog list-outputs)' fish . -s -l -o ( -l) ( --color) ( - -shuffle) . 'myprog' -o --output : complete -c myprog -s o -l output --argument -a : complete -c myprog -s o -l output -a "yes no" "yes" "no" : > myprog -o > myprog --output= : > myprog -o --require-parameter -r : complete -c myprog -s o -l output -ra "yes no" yes/no : > myprog -o > myprog --output= > myprog -o > myprog --output fish . : complete -c myprog -s o -l output --no-files -ra "yes no" : complete -c myprog -f --condition '__fish_seen_subcommand_from somesubcommand' : complete -c myprog -f --force-files -F : # complete -c myprog -f # --config-file complete -c myprog -l config-file --force-files -r timedatectl systemd : # timedatectl - . set -l commands status set-time set-timezone list-timezones set-local-rtc set-ntp # # # "-F" . # # # ( ".mp3") . complete -c timedatectl -f # # -"status" # -"set-timezone" # -"set-time" # -"list-timezones" # . # # `-n`/`--condition` . # (true) . # `__fish_seen_subcommand_from` . # ( ) . # . # git . # complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" \ -a "status set-time set-timezone list-timezones" # "set-timezone" # `timedatectl list-timezones` . # # . # `string` . complete -c timedatectl -n "__fish_seen_subcommand_from set-timezone" \ -a "(timedatectl list-timezones)" # `-d` # . # . complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" \ -a "set-local-rtc" -d "Maintain RTC in local time" # . complete -c timedatectl -n "__fish_seen_subcommand_from set-local-rtc" \ -l adjust-system-clock -d 'Synchronize system clock from the RTC' # . complete -c timedatectl -s h -l help -d 'Print a short help text and exit' complete -c timedatectl -l version -d 'Print a short version string and exit' complete -c timedatectl -l no-pager -d 'Do not pipe output into a pager' share/completions fish-shell . (USEFUL FUNCTIONS FOR WRITING COMPLETIONS) fish . __fish_ . fish fish . . __fish_print_ . __fish_print_filesystems . __fish_complete_ . . o __fish_complete_directories STRING DESCRIPTION STRING DESCRIPTION . o __fish_complete_path STRING DESCRIPTION STRING DESCRIPTION . o __fish_complete_groups . o __fish_complete_pids (PID) . o __fish_complete_suffix SUFFIX SUFFIX . complete --keep-order . o __fish_complete_users . o __fish_print_filesystems . . o __fish_print_hostnames (hostname) . fstab nfs ssh /etc/hosts . o __fish_print_interfaces . (WHERE TO PUT COMPLETIONS) . fish $fish_complete_path . .fish . fish : o ~/.config/fish/completions ( XDG_CONFIG_HOME) o /etc/fish/completions o ~/.local/share/fish/vendor_completions.d ( XDG_DATA_HOME) o /usr/share/fish/vendor_completions.d o fish fish status list-files o ~/.cache/fish/generated_completions ( XDG_CACHE_HOME). . . ~/.config/fish/completions . <#more- help> . <<>> (vendor) . pkgconfig pkg-config --variable completionsdir fish . (AUTHOR) fish-shell (COPYRIGHT) fish-shell 4.9 September 7, 2026 FISH-COMPLETIONS(1)