diff --git a/completions/atuin.fish b/completions/atuin.fish new file mode 100644 index 0000000..d93378b --- /dev/null +++ b/completions/atuin.fish @@ -0,0 +1,522 @@ +# Print an optspec for argparse to handle cmd's options that are independent of any subcommand. +function __fish_atuin_global_optspecs + string join \n h/help V/version +end + +function __fish_atuin_needs_command + # Figure out if the current invocation already has a command. + set -l cmd (commandline -opc) + set -e cmd[1] + argparse -s (__fish_atuin_global_optspecs) -- $cmd 2>/dev/null + or return + if set -q argv[1] + # Also print the command, so this can be used to figure out what it is. + echo $argv[1] + return 1 + end + return 0 +end + +function __fish_atuin_using_subcommand + set -l cmd (__fish_atuin_needs_command) + test -z "$cmd" + and return 1 + contains -- $cmd[1] $argv +end + +complete -c atuin -n "__fish_atuin_needs_command" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_needs_command" -s V -l version -d 'Print version' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "setup" -d 'Setup Atuin features' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "history" -d 'Manipulate shell history' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "hook" -d 'Manage AI-agent shell hooks' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "import" -d 'Import shell history from file' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "stats" -d 'Calculate statistics for your history' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "search" -d 'Interactive history search' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "sync" -d 'Sync with the configured server' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "login" -d 'Login to the configured server' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "logout" -d 'Log out' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "register" -d 'Register with the configured server' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "key" -d 'Print the encryption key for transfer to another machine' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "status" -d 'Display the sync status' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "account" -d 'Manage your sync account' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "kv" -d 'Get or set small key-value pairs' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "store" -d 'Manage the atuin data store' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "dotfiles" -d 'Manage your dotfiles with Atuin' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "scripts" -d 'Manage your scripts with Atuin' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "init" -d 'Print Atuin\'s shell init script' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "info" -d 'Information about dotfiles locations and ENV vars' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "doctor" -d 'Run the doctor to check for common issues' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "wrapped" +complete -c atuin -n "__fish_atuin_needs_command" -f -a "daemon" -d '*Experimental* Manage the background daemon' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "default-config" -d 'Print the default atuin configuration (config.toml)' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "config" +complete -c atuin -n "__fish_atuin_needs_command" -f -a "ai" -d 'Run the AI assistant' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "mcp" -d 'Start an MCP server exposing history search to AI tools (stdio)' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "pty-proxy" -d 'PTY proxy for atuin' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "uuid" -d 'Generate a UUID' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "contributors" +complete -c atuin -n "__fish_atuin_needs_command" -f -a "gen-completions" -d 'Generate shell completions' +complete -c atuin -n "__fish_atuin_needs_command" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand setup" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "start" -d 'Begins a new command in the history' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "end" -d 'Finishes a new command in the history (adds time, exit code)' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "tail" -d 'Stream history events from the daemon as they are received' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "list" -d 'List all items in history' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "last" -d 'Get the last command ran' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "init-store" +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "prune" -d 'Delete history entries matching the configured exclusion filters' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "dedup" -d 'Delete duplicate history entries (that have the same command, cwd and hostname)' +complete -c atuin -n "__fish_atuin_using_subcommand history; and not __fish_seen_subcommand_from start end tail list last init-store prune dedup help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from start" -l author -d 'Author of this command, eg `ellie`, `claude`, or `copilot`' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from start" -l intent -d 'Optional intent/rationale for running this command' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from start" -l command-from-env -d 'Collects the command from the `ATUIN_COMMAND_LINE` environment variable, which does not need escaping and is more compatible between OS and shells' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from start" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from end" -s e -l exit -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from end" -s d -l duration -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from end" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from tail" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -s r -l reverse -r -f -a "true\t'' +false\t''" +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -l timezone -l tz -d 'Display the command time in another timezone other than the configured default' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -s f -l format -d 'Available variables: {command}, {directory}, {duration}, {user}, {host}, {author}, {intent}, {exit}, {time}, {session}, and {uuid} Example: --format "{time} - [{duration}] - {directory}$\\t{command}"' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -s c -l cwd +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -s s -l session +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -l human +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -l cmd-only -d 'Show only the text of the command' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -l print0 -d 'Terminate the output with a null, for better multiline support' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from list" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from last" -l timezone -l tz -d 'Display the command time in another timezone other than the configured default' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from last" -s f -l format -d 'Available variables: {command}, {directory}, {duration}, {user}, {host}, {author}, {intent}, {time}, {session}, {uuid} and {relativetime}. Example: --format "{time} - [{duration}] - {directory}$\\t{command}"' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from last" -l human +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from last" -l cmd-only -d 'Show only the text of the command' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from last" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from init-store" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from prune" -s n -l dry-run -d 'List matching history lines without performing the actual deletion' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from prune" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from dedup" -s b -l before -d 'Only delete results added before this date' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from dedup" -l dupkeep -d 'How many recent duplicates to keep' -r +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from dedup" -s n -l dry-run -d 'List matching history lines without performing the actual deletion' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from dedup" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "start" -d 'Begins a new command in the history' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "end" -d 'Finishes a new command in the history (adds time, exit code)' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "tail" -d 'Stream history events from the daemon as they are received' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "list" -d 'List all items in history' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "last" -d 'Get the last command ran' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "init-store" +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "prune" -d 'Delete history entries matching the configured exclusion filters' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "dedup" -d 'Delete duplicate history entries (that have the same command, cwd and hostname)' +complete -c atuin -n "__fish_atuin_using_subcommand history; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand hook; and not __fish_seen_subcommand_from install help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand hook; and not __fish_seen_subcommand_from install help" -a "install" -d 'Install hooks for an AI agent to capture commands in atuin history' +complete -c atuin -n "__fish_atuin_using_subcommand hook; and not __fish_seen_subcommand_from install help" -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand hook; and __fish_seen_subcommand_from install" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand hook; and __fish_seen_subcommand_from help" -f -a "install" -d 'Install hooks for an AI agent to capture commands in atuin history' +complete -c atuin -n "__fish_atuin_using_subcommand hook; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "auto" -d 'Import history for the current shell' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "zsh" -d 'Import history from the zsh history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "zsh-hist-db" -d 'Import history from the zsh history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "bash" -d 'Import history from the bash history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "replxx" -d 'Import history from the replxx history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "resh" -d 'Import history from the resh history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "fish" -d 'Import history from the fish history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "nu" -d 'Import history from the nu history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "nu-hist-db" -d 'Import history from the nu history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "xonsh" -d 'Import history from xonsh json files' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "xonsh-sqlite" -d 'Import history from xonsh sqlite db' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "powershell" -d 'Import history from the powershell history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and not __fish_seen_subcommand_from auto zsh zsh-hist-db bash replxx resh fish nu nu-hist-db xonsh xonsh-sqlite powershell help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from auto" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from zsh" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from zsh-hist-db" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from bash" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from replxx" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from resh" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from fish" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from nu" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from nu-hist-db" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from xonsh" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from xonsh-sqlite" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from powershell" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "auto" -d 'Import history for the current shell' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "zsh" -d 'Import history from the zsh history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "zsh-hist-db" -d 'Import history from the zsh history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "bash" -d 'Import history from the bash history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "replxx" -d 'Import history from the replxx history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "resh" -d 'Import history from the resh history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "fish" -d 'Import history from the fish history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "nu" -d 'Import history from the nu history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "nu-hist-db" -d 'Import history from the nu history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "xonsh" -d 'Import history from xonsh json files' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "xonsh-sqlite" -d 'Import history from xonsh sqlite db' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "powershell" -d 'Import history from the powershell history file' +complete -c atuin -n "__fish_atuin_using_subcommand import; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand stats" -s c -l count -d 'How many top commands to list' -r +complete -c atuin -n "__fish_atuin_using_subcommand stats" -s n -l ngram-size -d 'The number of consecutive commands to consider' -r +complete -c atuin -n "__fish_atuin_using_subcommand stats" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand search" -s c -l cwd -d 'Filter search result by directory' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l exclude-cwd -d 'Exclude directory from results' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -s e -l exit -d 'Filter search result by exit code' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l exclude-exit -d 'Exclude results with this exit code' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -s b -l before -d 'Only include results added before this date' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l after -d 'Only include results after this date' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l limit -d 'How many entries to return at most' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l offset -d 'Offset from the start of the results' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l filter-mode -d 'Allow overriding filter mode over config' -r -f -a "global\t'' +host\t'' +session\t'' +directory\t'' +workspace\t'' +session-preload\t''" +complete -c atuin -n "__fish_atuin_using_subcommand search" -l search-mode -d 'Allow overriding search mode over config' -r -f -a "prefix\t'' +full-text\t'' +fuzzy\t'' +skim\t'' +daemon-fuzzy\t''" +complete -c atuin -n "__fish_atuin_using_subcommand search" -l keymap-mode -d 'Notify the keymap at the shell\'s side' -r -f -a "emacs\t'' +vim-normal\t'' +vim-insert\t'' +auto\t''" +complete -c atuin -n "__fish_atuin_using_subcommand search" -l timezone -l tz -d 'Display the command time in another timezone other than the configured default' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -s f -l format -d 'Available variables: {command}, {directory}, {duration}, {user}, {host}, {time}, {exit} and {relativetime}. Example: --format "{time} - [{duration}] - {directory}$\\t{command}"' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l inline-height -d 'Set the maximum number of lines Atuin\'s interface should take up' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l author -d 'Filter by author. Supports $all-user (non-agents), $all-agent, or literal names. Can be specified multiple times' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -l result-file -d 'File name to write the result to (hidden from help as this is meant to be used from a script)' -r +complete -c atuin -n "__fish_atuin_using_subcommand search" -s i -l interactive -d 'Open interactive search UI' +complete -c atuin -n "__fish_atuin_using_subcommand search" -l shell-up-key-binding -d 'Marker argument used to inform atuin that it was invoked from a shell up-key binding (hidden from help to avoid confusion)' +complete -c atuin -n "__fish_atuin_using_subcommand search" -l human -d 'Use human-readable formatting for time' +complete -c atuin -n "__fish_atuin_using_subcommand search" -l cmd-only -d 'Show only the text of the command' +complete -c atuin -n "__fish_atuin_using_subcommand search" -l print0 -d 'Terminate the output with a null, for better multiline handling' +complete -c atuin -n "__fish_atuin_using_subcommand search" -l delete -d 'Delete anything matching this query. Will not print out the match' +complete -c atuin -n "__fish_atuin_using_subcommand search" -l delete-it-all -d 'Delete EVERYTHING!' +complete -c atuin -n "__fish_atuin_using_subcommand search" -s r -l reverse -d 'Reverse the order of results, oldest first' +complete -c atuin -n "__fish_atuin_using_subcommand search" -l include-duplicates -d 'Include duplicate commands in the output (non-interactive only)' +complete -c atuin -n "__fish_atuin_using_subcommand search" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c atuin -n "__fish_atuin_using_subcommand sync" -s f -l force -d 'Force re-download everything' +complete -c atuin -n "__fish_atuin_using_subcommand sync" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand login" -s u -l username -r +complete -c atuin -n "__fish_atuin_using_subcommand login" -s p -l password -r +complete -c atuin -n "__fish_atuin_using_subcommand login" -s k -l key -d 'The encryption key for your account' -r +complete -c atuin -n "__fish_atuin_using_subcommand login" -s t -l totp-code -d 'The two-factor authentication code for your account, if any' -r +complete -c atuin -n "__fish_atuin_using_subcommand login" -l from-registration +complete -c atuin -n "__fish_atuin_using_subcommand login" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand logout" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand register" -s u -l username -r +complete -c atuin -n "__fish_atuin_using_subcommand register" -s p -l password -r +complete -c atuin -n "__fish_atuin_using_subcommand register" -s e -l email -r +complete -c atuin -n "__fish_atuin_using_subcommand register" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand key" -l base64 -d 'Switch to base64 output of the key' +complete -c atuin -n "__fish_atuin_using_subcommand key" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand status" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -f -a "login" -d 'Login to the configured server' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -f -a "register" -d 'Register a new account' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -f -a "logout" -d 'Log out' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -f -a "delete" -d 'Delete your account, and all synced data' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -f -a "change-password" -d 'Change your password' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -f -a "link" -d 'Link your CLI sync account to your Hub account' +complete -c atuin -n "__fish_atuin_using_subcommand account; and not __fish_seen_subcommand_from login register logout delete change-password link help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from login" -s u -l username -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from login" -s p -l password -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from login" -s k -l key -d 'The encryption key for your account' -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from login" -s t -l totp-code -d 'The two-factor authentication code for your account, if any' -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from login" -l from-registration +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from login" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from register" -s u -l username -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from register" -s p -l password -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from register" -s e -l email -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from register" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from logout" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from delete" -s p -l password -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from delete" -s t -l totp-code -d 'The two-factor authentication code for your account, if any' -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from delete" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from change-password" -s c -l current-password -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from change-password" -s n -l new-password -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from change-password" -s t -l totp-code -d 'The two-factor authentication code for your account, if any' -r +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from change-password" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from link" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from help" -f -a "login" -d 'Login to the configured server' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from help" -f -a "register" -d 'Register a new account' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from help" -f -a "logout" -d 'Log out' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from help" -f -a "delete" -d 'Delete your account, and all synced data' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from help" -f -a "change-password" -d 'Change your password' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from help" -f -a "link" -d 'Link your CLI sync account to your Hub account' +complete -c atuin -n "__fish_atuin_using_subcommand account; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and not __fish_seen_subcommand_from set delete get list rebuild help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and not __fish_seen_subcommand_from set delete get list rebuild help" -f -a "set" -d 'Set a key-value pair' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and not __fish_seen_subcommand_from set delete get list rebuild help" -f -a "delete" -d 'Delete one or more key-value pairs' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and not __fish_seen_subcommand_from set delete get list rebuild help" -f -a "get" -d 'Retrieve a saved value' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and not __fish_seen_subcommand_from set delete get list rebuild help" -f -a "list" -d 'List all keys in a namespace, or in all namespaces' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and not __fish_seen_subcommand_from set delete get list rebuild help" -f -a "rebuild" -d 'Rebuild the KV store' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and not __fish_seen_subcommand_from set delete get list rebuild help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from set" -s k -l key -d 'Key to set' -r +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from set" -s n -l namespace -d 'Namespace for the key-value pair' -r +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from set" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from delete" -s n -l namespace -d 'Namespace for the key-value pair' -r +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from delete" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from get" -s n -l namespace -d 'Namespace for the key-value pair' -r +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from get" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from list" -s n -l namespace -d 'Namespace to list keys from' -r +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from list" -s a -l all-namespaces -d 'List all keys in all namespaces' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from list" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from rebuild" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from help" -f -a "set" -d 'Set a key-value pair' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from help" -f -a "delete" -d 'Delete one or more key-value pairs' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from help" -f -a "get" -d 'Retrieve a saved value' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from help" -f -a "list" -d 'List all keys in a namespace, or in all namespaces' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from help" -f -a "rebuild" -d 'Rebuild the KV store' +complete -c atuin -n "__fish_atuin_using_subcommand kv; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "status" -d 'Print the current status of the record store' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "rebuild" -d 'Rebuild a store (eg atuin store rebuild history)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "rekey" -d 'Re-encrypt the store with a new key (potential for data loss!)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "purge" -d 'Delete all records in the store that cannot be decrypted with the current key' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "verify" -d 'Verify that all records in the store can be decrypted with the current key' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "push" -d 'Push all records to the remote sync server (one way sync)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "pull" -d 'Pull records from the remote sync server (one way sync)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and not __fish_seen_subcommand_from status rebuild rekey purge verify push pull help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from status" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from rebuild" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from rekey" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from purge" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from verify" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from push" -s t -l tag -d 'The tag to push (eg, \'history\'). Defaults to all tags' -r +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from push" -l host -d 'The host to push, in the form of a UUID host ID. Defaults to the current host' -r +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from push" -l page -d 'Page Size How many records to upload at once. Defaults to 100' -r +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from push" -l force -d 'Force push records This will override both host and tag, to be all hosts and all tags. First clear the remote store, then upload all of the local store' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from push" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from pull" -s t -l tag -d 'The tag to push (eg, \'history\'). Defaults to all tags' -r +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from pull" -l page -d 'Page Size How many records to download at once. Defaults to 100' -r +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from pull" -l force -d 'Force push records This will first wipe the local store, and then download all records from the remote' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from pull" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "status" -d 'Print the current status of the record store' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "rebuild" -d 'Rebuild a store (eg atuin store rebuild history)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "rekey" -d 'Re-encrypt the store with a new key (potential for data loss!)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "purge" -d 'Delete all records in the store that cannot be decrypted with the current key' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "verify" -d 'Verify that all records in the store can be decrypted with the current key' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "push" -d 'Push all records to the remote sync server (one way sync)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "pull" -d 'Pull records from the remote sync server (one way sync)' +complete -c atuin -n "__fish_atuin_using_subcommand store; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and not __fish_seen_subcommand_from alias var help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and not __fish_seen_subcommand_from alias var help" -f -a "alias" -d 'Manage shell aliases with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and not __fish_seen_subcommand_from alias var help" -f -a "var" -d 'Manage shell and environment variables with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and not __fish_seen_subcommand_from alias var help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from alias" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from alias" -f -a "set" -d 'Set an alias' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from alias" -f -a "delete" -d 'Delete an alias' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from alias" -f -a "list" -d 'List all aliases' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from alias" -f -a "clear" -d 'Delete all aliases' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from alias" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from var" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from var" -f -a "set" -d 'Set a variable' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from var" -f -a "delete" -d 'Delete a variable' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from var" -f -a "list" -d 'List all variables' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from var" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from help" -f -a "alias" -d 'Manage shell aliases with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from help" -f -a "var" -d 'Manage shell and environment variables with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand dotfiles; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -f -a "new" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -f -a "run" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -f -a "list" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -f -a "get" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -f -a "edit" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -f -a "delete" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and not __fish_seen_subcommand_from new run list get edit delete help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from new" -s d -l description -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from new" -s t -l tags -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from new" -s s -l shebang -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from new" -l script -r -F +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from new" -l last -d 'Use the last command as the script content Optionally specify a number to use the last N commands' -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from new" -l no-edit -d 'Skip opening editor when using --last' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from new" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from run" -s v -l var -d 'Specify template variables in the format KEY=VALUE Example: -v name=John -v greeting="Hello there"' -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from run" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from list" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from get" -s s -l script -d 'Display only the executable script with shebang' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from get" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -s d -l description -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -s t -l tags -d 'Replace all existing tags with these new tags' -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -l rename -d 'Rename the script' -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -s s -l shebang -r +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -l script -r -F +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -l no-tags -d 'Remove all tags from the script' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -l no-edit -d 'Skip opening editor' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from edit" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from delete" -s f -l force +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from delete" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from help" -f -a "new" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from help" -f -a "run" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from help" -f -a "list" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from help" -f -a "get" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from help" -f -a "edit" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from help" -f -a "delete" +complete -c atuin -n "__fish_atuin_using_subcommand scripts; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand init" -l disable-ctrl-r -d 'Disable the binding of CTRL-R to atuin' +complete -c atuin -n "__fish_atuin_using_subcommand init" -l disable-up-arrow -d 'Disable the binding of the Up Arrow key to atuin' +complete -c atuin -n "__fish_atuin_using_subcommand init" -l disable-ai -d 'Disable the binding of ? to Atuin AI' +complete -c atuin -n "__fish_atuin_using_subcommand init" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c atuin -n "__fish_atuin_using_subcommand info" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand doctor" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand wrapped" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -l daemonize -d 'Internal flag for daemonization' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -l show-logs -d 'Also write daemon logs to the console (useful for debugging)' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -f -a "start" -d 'Start the daemon server' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -f -a "status" -d 'Show the daemon\'s current status' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -f -a "stop" -d 'Stop the daemon gracefully' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -f -a "restart" -d 'Restart the daemon (stop, then start in background)' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and not __fish_seen_subcommand_from start status stop restart help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from start" -l daemonize +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from start" -l show-logs -d 'Also write daemon logs to the console (useful for debugging)' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from start" -l force -d 'Force start: kill existing daemon process and reset the socket' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from start" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from status" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from stop" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from restart" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from help" -f -a "start" -d 'Start the daemon server' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from help" -f -a "status" -d 'Show the daemon\'s current status' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from help" -f -a "stop" -d 'Stop the daemon gracefully' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from help" -f -a "restart" -d 'Restart the daemon (stop, then start in background)' +complete -c atuin -n "__fish_atuin_using_subcommand daemon; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand default-config" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand config; and not __fish_seen_subcommand_from get set print help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand config; and not __fish_seen_subcommand_from get set print help" -f -a "get" -d 'Get a configuration value from your config.toml file or after defaults and overrides are applied' +complete -c atuin -n "__fish_atuin_using_subcommand config; and not __fish_seen_subcommand_from get set print help" -f -a "set" -d 'Set a configuration value in your config.toml file' +complete -c atuin -n "__fish_atuin_using_subcommand config; and not __fish_seen_subcommand_from get set print help" -f -a "print" -d 'Print all configuration values from your config.toml file in TOML format' +complete -c atuin -n "__fish_atuin_using_subcommand config; and not __fish_seen_subcommand_from get set print help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from get" -s r -l resolved -d 'Print the value after defaults and overrides are applied' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from get" -s v -l verbose -d 'Print both the config file value and the resolved value' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from get" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from set" -s t -l type -d 'Store value as an explicit type' -r -f -a "auto\t'Automatically determine the type of the value' +string\t'Store value as a string' +boolean\t'Store value as a boolean' +integer\t'Store value as an integer' +float\t'Store the value as a float'" +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from set" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from print" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from help" -f -a "get" -d 'Get a configuration value from your config.toml file or after defaults and overrides are applied' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from help" -f -a "set" -d 'Set a configuration value in your config.toml file' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from help" -f -a "print" -d 'Print all configuration values from your config.toml file in TOML format' +complete -c atuin -n "__fish_atuin_using_subcommand config; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and not __fish_seen_subcommand_from init inline help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and not __fish_seen_subcommand_from init inline help" -f -a "init" -d 'Initialize shell integration' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and not __fish_seen_subcommand_from init inline help" -f -a "inline" -d 'Inline completion mode with small TUI overlay' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and not __fish_seen_subcommand_from init inline help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from init" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from inline" -l api-endpoint -d 'Custom API endpoint; defaults to reading from the `ai.endpoint` setting' -r +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from inline" -l api-token -d 'Custom API token; defaults to reading from the `ai.api_token` setting' -r +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from inline" -s v -l verbose -d 'Enable verbose logging' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from inline" -l hook -d 'Use the hook mode' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from inline" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from help" -f -a "init" -d 'Initialize shell integration' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from help" -f -a "inline" -d 'Inline completion mode with small TUI overlay' +complete -c atuin -n "__fish_atuin_using_subcommand ai; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand mcp" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and not __fish_seen_subcommand_from init help" -l shell -d 'Path to the shell binary that atuin pty-proxy should spawn. Defaults to the system login shell. Only valid when no subcommand is given' -r -F +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and not __fish_seen_subcommand_from init help" -l debug-osc133 -d 'Highlight OSC 133 prompt, input, output, and exit-code regions' +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and not __fish_seen_subcommand_from init help" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and not __fish_seen_subcommand_from init help" -f -a "init" -d 'Print shell code to initialize atuin pty-proxy on shell startup' +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and not __fish_seen_subcommand_from init help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and __fish_seen_subcommand_from init" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and __fish_seen_subcommand_from help" -f -a "init" -d 'Print shell code to initialize atuin pty-proxy on shell startup' +complete -c atuin -n "__fish_atuin_using_subcommand pty-proxy; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand uuid" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand contributors" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand gen-completions" -s s -l shell -d 'Set the shell for generating completions' -r -f -a "bash\t'' +elvish\t'' +fish\t'' +nushell\t'' +powershell\t'' +zsh\t''" +complete -c atuin -n "__fish_atuin_using_subcommand gen-completions" -s o -l out-dir -d 'Set the output directory' -r +complete -c atuin -n "__fish_atuin_using_subcommand gen-completions" -s h -l help -d 'Print help' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "setup" -d 'Setup Atuin features' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "history" -d 'Manipulate shell history' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "hook" -d 'Manage AI-agent shell hooks' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "import" -d 'Import shell history from file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "stats" -d 'Calculate statistics for your history' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "search" -d 'Interactive history search' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "sync" -d 'Sync with the configured server' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "login" -d 'Login to the configured server' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "logout" -d 'Log out' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "register" -d 'Register with the configured server' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "key" -d 'Print the encryption key for transfer to another machine' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "status" -d 'Display the sync status' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "account" -d 'Manage your sync account' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "kv" -d 'Get or set small key-value pairs' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "store" -d 'Manage the atuin data store' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "dotfiles" -d 'Manage your dotfiles with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "scripts" -d 'Manage your scripts with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "init" -d 'Print Atuin\'s shell init script' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "info" -d 'Information about dotfiles locations and ENV vars' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "doctor" -d 'Run the doctor to check for common issues' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "wrapped" +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "daemon" -d '*Experimental* Manage the background daemon' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "default-config" -d 'Print the default atuin configuration (config.toml)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "config" +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "ai" -d 'Run the AI assistant' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "mcp" -d 'Start an MCP server exposing history search to AI tools (stdio)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "pty-proxy" -d 'PTY proxy for atuin' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "uuid" -d 'Generate a UUID' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "contributors" +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "gen-completions" -d 'Generate shell completions' +complete -c atuin -n "__fish_atuin_using_subcommand help; and not __fish_seen_subcommand_from setup history hook import stats search sync login logout register key status account kv store dotfiles scripts init info doctor wrapped daemon default-config config ai mcp pty-proxy uuid contributors gen-completions help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "start" -d 'Begins a new command in the history' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "end" -d 'Finishes a new command in the history (adds time, exit code)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "tail" -d 'Stream history events from the daemon as they are received' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "list" -d 'List all items in history' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "last" -d 'Get the last command ran' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "init-store" +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "prune" -d 'Delete history entries matching the configured exclusion filters' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from history" -f -a "dedup" -d 'Delete duplicate history entries (that have the same command, cwd and hostname)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from hook" -f -a "install" -d 'Install hooks for an AI agent to capture commands in atuin history' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "auto" -d 'Import history for the current shell' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "zsh" -d 'Import history from the zsh history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "zsh-hist-db" -d 'Import history from the zsh history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "bash" -d 'Import history from the bash history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "replxx" -d 'Import history from the replxx history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "resh" -d 'Import history from the resh history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "fish" -d 'Import history from the fish history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "nu" -d 'Import history from the nu history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "nu-hist-db" -d 'Import history from the nu history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "xonsh" -d 'Import history from xonsh json files' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "xonsh-sqlite" -d 'Import history from xonsh sqlite db' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from import" -f -a "powershell" -d 'Import history from the powershell history file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from account" -f -a "login" -d 'Login to the configured server' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from account" -f -a "register" -d 'Register a new account' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from account" -f -a "logout" -d 'Log out' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from account" -f -a "delete" -d 'Delete your account, and all synced data' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from account" -f -a "change-password" -d 'Change your password' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from account" -f -a "link" -d 'Link your CLI sync account to your Hub account' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from kv" -f -a "set" -d 'Set a key-value pair' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from kv" -f -a "delete" -d 'Delete one or more key-value pairs' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from kv" -f -a "get" -d 'Retrieve a saved value' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from kv" -f -a "list" -d 'List all keys in a namespace, or in all namespaces' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from kv" -f -a "rebuild" -d 'Rebuild the KV store' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from store" -f -a "status" -d 'Print the current status of the record store' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from store" -f -a "rebuild" -d 'Rebuild a store (eg atuin store rebuild history)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from store" -f -a "rekey" -d 'Re-encrypt the store with a new key (potential for data loss!)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from store" -f -a "purge" -d 'Delete all records in the store that cannot be decrypted with the current key' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from store" -f -a "verify" -d 'Verify that all records in the store can be decrypted with the current key' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from store" -f -a "push" -d 'Push all records to the remote sync server (one way sync)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from store" -f -a "pull" -d 'Pull records from the remote sync server (one way sync)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from dotfiles" -f -a "alias" -d 'Manage shell aliases with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from dotfiles" -f -a "var" -d 'Manage shell and environment variables with Atuin' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from scripts" -f -a "new" +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from scripts" -f -a "run" +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from scripts" -f -a "list" +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from scripts" -f -a "get" +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from scripts" -f -a "edit" +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from scripts" -f -a "delete" +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from daemon" -f -a "start" -d 'Start the daemon server' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from daemon" -f -a "status" -d 'Show the daemon\'s current status' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from daemon" -f -a "stop" -d 'Stop the daemon gracefully' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from daemon" -f -a "restart" -d 'Restart the daemon (stop, then start in background)' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from config" -f -a "get" -d 'Get a configuration value from your config.toml file or after defaults and overrides are applied' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from config" -f -a "set" -d 'Set a configuration value in your config.toml file' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from config" -f -a "print" -d 'Print all configuration values from your config.toml file in TOML format' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from ai" -f -a "init" -d 'Initialize shell integration' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from ai" -f -a "inline" -d 'Inline completion mode with small TUI overlay' +complete -c atuin -n "__fish_atuin_using_subcommand help; and __fish_seen_subcommand_from pty-proxy" -f -a "init" -d 'Print shell code to initialize atuin pty-proxy on shell startup' diff --git a/completions/bun.fish b/completions/bun.fish new file mode 100644 index 0000000..6b2dc5b --- /dev/null +++ b/completions/bun.fish @@ -0,0 +1,196 @@ +# This is terribly complicated +# It's because: +# 1. bun run has to have dynamic completions +# 2. there are global options +# 3. bun {install add remove} gets special options +# 4. I don't know how to write fish completions well +# Contributions very welcome!! + +function __fish__get_bun_bins + string split ' ' (bun getcompletes b) +end + +function __fish__get_bun_scripts + set -lx SHELL bash + set -lx MAX_DESCRIPTION_LEN 40 + string trim (string split '\n' (string split '\t' (bun getcompletes z))) +end + +function __fish__get_bun_packages + if test (commandline -ct) != "" + set -lx SHELL fish + string split ' ' (bun getcompletes a (commandline -ct)) + end +end + +function __history_completions + set -l tokens (commandline --current-process --tokenize) + history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | string replace -r \^$tokens[2]\\s\* "" | string split ' ' +end + +function __fish__get_bun_bun_js_files + string split ' ' (bun getcompletes j) +end + +set -l bun_install_boolean_flags yarn production optional development no-save dry-run force no-cache silent verbose global +set -l bun_install_boolean_flags_descriptions "Write a yarn.lock file (yarn v1)" "Don't install devDependencies" "Add dependency to optionalDependencies" "Add dependency to devDependencies" "Don't update package.json or save a lockfile" "Don't install anything" "Always request the latest versions from the registry & reinstall all dependencies" "Ignore manifest cache entirely" "Don't output anything" "Excessively verbose logging" "Use global folder" + +set -l bun_builtin_cmds_without_run dev create help bun upgrade discord install remove add update init pm x repl +set -l bun_builtin_cmds_accepting_flags create help bun upgrade discord run init link unlink pm x update + +function __bun_complete_bins_scripts --inherit-variable bun_builtin_cmds_without_run -d "Emit bun completions for bins and scripts" + # Do nothing if we already have a builtin subcommand, + # or any subcommand other than "run". + if __fish_seen_subcommand_from $bun_builtin_cmds_without_run + or not __fish_use_subcommand && not __fish_seen_subcommand_from run + return + end + # Do we already have a bin or script subcommand? + set -l bins (__fish__get_bun_bins) + if __fish_seen_subcommand_from $bins + return + end + # Scripts have descriptions appended with a tab separator. + # Strip off descriptions for the purposes of subcommand testing. + set -l scripts (__fish__get_bun_scripts) + if __fish_seen_subcommand_from (string split \t -f 1 -- $scripts) + return + end + # Emit scripts. + for script in $scripts + echo $script + end + # Emit binaries and JS files (but only if we're doing `bun run`). + if __fish_seen_subcommand_from run + for bin in $bins + echo "$bin"\t"package bin" + end + for file in (__fish__get_bun_bun_js_files) + echo "$file"\t"Bun.js" + end + end +end + + +# Clear existing completions +complete -e -c bun + +# Dynamically emit scripts and binaries +complete -c bun -f -a "(__bun_complete_bins_scripts)" + +# Complete flags if we have no subcommand or a flag-friendly one. +set -l flag_applies "__fish_use_subcommand; or __fish_seen_subcommand_from $bun_builtin_cmds_accepting_flags" +complete -c bun \ + -n $flag_applies --no-files -s 'u' -l 'origin' -r -d 'Server URL. Rewrites import paths' +complete -c bun \ + -n $flag_applies --no-files -s 'p' -l 'port' -r -d 'Port number to start server from' +complete -c bun \ + -n $flag_applies --no-files -s 'd' -l 'define' -r -d 'Substitute K:V while parsing, e.g. --define process.env.NODE_ENV:\"development\"' +complete -c bun \ + -n $flag_applies --no-files -s 'e' -l 'external' -r -d 'Exclude module from transpilation (can use * wildcards). ex: -e react' +complete -c bun \ + -n $flag_applies --no-files -l 'use' -r -d 'Use a framework (ex: next)' +complete -c bun \ + -n $flag_applies --no-files -l 'hot' -r -d 'Enable hot reloading in Bun\'s JavaScript runtime' + +# Complete dev and create as first subcommand. +complete -c bun \ + -n "__fish_use_subcommand" -a 'dev' -d 'Start dev server' +complete -c bun \ + -n "__fish_use_subcommand" -a 'create' -f -d 'Create a new project from a template' + +# Complete "next" and "react" if we've seen "create". +complete -c bun \ + -n "__fish_seen_subcommand_from create" -a 'next' -d 'new Next.js project' + +complete -c bun \ + -n "__fish_seen_subcommand_from create" -a 'react' -d 'new React project' + +# Complete "upgrade" as first subcommand. +complete -c bun \ + -n "__fish_use_subcommand" -a 'upgrade' -d 'Upgrade bun to the latest version' -x +# Complete "-h/--help" unconditionally. +complete -c bun \ + -s "h" -l "help" -d 'See all commands and flags' -x + +# Complete "-v/--version" if we have no subcommand. +complete -c bun \ + -n "not __fish_use_subcommand" -l "version" -s "v" -d 'Bun\'s version' -x + +# Complete additional subcommands. +complete -c bun \ + -n "__fish_use_subcommand" -a 'discord' -d 'Open bun\'s Discord server' -x + + +complete -c bun \ + -n "__fish_use_subcommand" -a 'bun' -d 'Generate a new bundle' + + +complete -c bun \ + -n "__fish_seen_subcommand_from bun" -F -d 'Bundle this' + +complete -c bun \ + -n "__fish_seen_subcommand_from create; and __fish_seen_subcommand_from react next" -F -d "Create in directory" + + +complete -c bun \ + -n "__fish_use_subcommand" -a 'init' -F -d 'Start an empty Bun project' + +complete -c bun \ + -n "__fish_use_subcommand" -a 'install' -f -d 'Install packages from package.json' + +complete -c bun \ + -n "__fish_use_subcommand" -a 'add' -F -d 'Add a package to package.json' + +complete -c bun \ + -n "__fish_use_subcommand" -a 'remove' -F -d 'Remove a package from package.json' + + +for i in (seq (count $bun_install_boolean_flags)) + complete -c bun \ + -n "__fish_seen_subcommand_from install add remove update" -l "$bun_install_boolean_flags[$i]" -d "$bun_install_boolean_flags_descriptions[$i]" +end + +complete -c bun \ + -n "__fish_seen_subcommand_from install add remove update" -l 'cwd' -d 'Change working directory' + +complete -c bun \ + -n "__fish_seen_subcommand_from install add remove update" -l 'cache-dir' -d 'Choose a cache directory (default: $HOME/.bun/install/cache)' + +complete -c bun \ + -n "__fish_seen_subcommand_from add" -d 'Popular' -a '(__fish__get_bun_packages)' + +complete -c bun \ + -n "__fish_seen_subcommand_from add" -d 'History' -a '(__history_completions)' + +complete -c bun \ + -n "__fish_seen_subcommand_from pm; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) cache;" -a 'bin ls cache hash hash-print hash-string' -f + +complete -c bun \ + -n "__fish_seen_subcommand_from pm; and __fish_seen_subcommand_from cache; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts);" -a 'rm' -f + +# Add built-in subcommands with descriptions. +complete -c bun -n "__fish_use_subcommand" -a "create" -f -d "Create a new project from a template" +complete -c bun -n "__fish_use_subcommand" -a "build bun" --require-parameter -F -d "Transpile and bundle one or more files" +complete -c bun -n "__fish_use_subcommand" -a "upgrade" -d "Upgrade Bun" +complete -c bun -n "__fish_use_subcommand" -a "run" -d "Run a script or package binary" +complete -c bun -n "__fish_use_subcommand" -a "install" -d "Install dependencies from package.json" -f +complete -c bun -n "__fish_use_subcommand" -a "remove" -d "Remove a dependency from package.json" -f +complete -c bun -n "__fish_use_subcommand" -a "add" -d "Add a dependency to package.json" -f +complete -c bun -n "__fish_use_subcommand" -a "init" -d "Initialize a Bun project in this directory" -f +complete -c bun -n "__fish_use_subcommand" -a "link" -d "Register or link a local npm package" -f +complete -c bun -n "__fish_use_subcommand" -a "unlink" -d "Unregister a local npm package" -f +complete -c bun -n "__fish_use_subcommand" -a "pm" -d "Additional package management utilities" -f +complete -c bun -n "__fish_use_subcommand" -a "x" -d "Execute a package binary, installing if needed" -f +complete -c bun -n "__fish_use_subcommand" -a "outdated" -d "Display the latest versions of outdated dependencies" -f +complete -c bun -n "__fish_use_subcommand" -a "update" -d "Update dependencies to their latest versions" -f +complete -c bun -n "__fish_use_subcommand" -a "publish" -d "Publish your package from local to npm" -f +complete -c bun -n "__fish_use_subcommand" -a "repl" -d "Start a REPL session with Bun" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "e" -l "eval" -r -d "Evaluate argument as a script, then exit" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "p" -l "print" -r -d "Evaluate argument as a script, print the result, then exit" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "r" -l "preload" -r -d "Import a module before other modules are loaded" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "smol" -d "Use less memory, but run garbage collection more often" -f +complete -c bun -n "__fish_seen_subcommand_from repl" -s "c" -l "config" -r -d "Specify path to Bun config file" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "cwd" -r -d "Absolute path to resolve files & entry points from" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "env-file" -r -d "Load environment variables from the specified file(s)" +complete -c bun -n "__fish_seen_subcommand_from repl" -l "no-env-file" -d "Disable automatic loading of .env files" -f diff --git a/completions/copilot.fish b/completions/copilot.fish new file mode 100644 index 0000000..9f76b2b --- /dev/null +++ b/completions/copilot.fish @@ -0,0 +1,256 @@ +# fish completion for copilot +# Generated by `copilot completion fish`. Do not edit by hand. + +function __copilot_at_path --description 'copilot: true when the resolved subcommand path equals the given tokens' + set -l tokens (commandline -poc) + set -l required '--add-dir' '--add-github-mcp-tool' '--add-github-mcp-toolset' '--additional-mcp-config' '--agent' '--attachment' '--context' '--disable-mcp-server' '--effort' '--env' '--extension-sdk-path' '--header' '--host' '--interactive' '--kind' '--log-dir' '--log-level' '--max-ai-credits' '--max-autopilot-continues' '--mode' '--model' '--name' '--output-format' '--plugin-dir' '--prompt' '--reasoning-effort' '--scope' '--session-id' '--stream' '--timeout' '--tools' '--transport' '-C' '-i' '-n' '-p' + set -l optional '--bash-env' '--connect' '--mouse' '--resume' '--share' '-r' + set -l variadic '--allow-tool' '--allow-url' '--available-tools' '--deny-tool' '--deny-url' '--excluded-tools' '--secret-env-vars' + set -l known 'login' 'help' 'init' 'update' 'version' 'plugin' 'plugin install' 'plugin uninstall' 'plugin update' 'plugin list' 'plugin marketplace' 'plugin marketplace add' 'plugin marketplace remove' 'plugin marketplace list' 'plugin marketplace browse' 'plugin marketplace update' 'mcp' 'mcp list' 'mcp get' 'mcp add' 'mcp remove' 'plugins' 'plugins list' 'plugins enable' 'plugins disable' 'plugins remove' 'plugins rm' 'plugins install' 'plugins add' 'plugins update' 'plugins marketplace' 'plugins marketplace list' 'plugins marketplace ls' 'plugins marketplace add' 'plugins marketplace remove' 'plugins marketplace rm' 'plugins marketplace browse' 'plugins marketplace update' 'plugins marketplace refresh' 'plugins marketplaces' 'plugins marketplaces list' 'plugins marketplaces ls' 'plugins marketplaces add' 'plugins marketplaces remove' 'plugins marketplaces rm' 'plugins marketplaces browse' 'plugins marketplaces update' 'plugins marketplaces refresh' 'skill' 'skill list' 'skill add' 'skill remove' 'completion' + + set -l path + set -l mode none + set -l n (count $tokens) + set -l i 2 + while test $i -le $n + set -l w $tokens[$i] + if test "$w" = '--' + break + end + if test "$mode" = required + set mode none + set i (math $i + 1) + continue + end + # The path this token would extend to. The resolved path is not reassigned + # until after both uses below, so one computation serves the mid-consumption + # check and the subcommand check. + set -l candidate (string join ' ' -- $path $w) + if test "$mode" = optional; or test "$mode" = variadic + if string match -q -- '-*' $w; or contains -- $candidate $known + set mode none + else + if test "$mode" = optional + set mode none + end + set i (math $i + 1) + continue + end + end + if string match -q -- '--*=*' $w + # --flag=value form: value is attached, so no token to skip. + else if string match -q -- '-*' $w + if contains -- $w $required + set mode required + else if contains -- $w $optional + set mode optional + else if contains -- $w $variadic + set mode variadic + end + else + if contains -- $candidate $known + set path $path $w + end + end + set i (math $i + 1) + end + + # A value-taking flag left mid-consumption -- any of required/optional/variadic left with no + # value yet, or a variadic still open (e.g. `copilot --prompt ` or `copilot plugin --tags foo `) + # -- means the next token may be the flag's value, not a subcommand. Only `ready` callers + # (subcommand/positional registrations) suppress in that state, matching the bash/zsh walkers; + # `any` callers (a flag's own value registration) still match so the flag can offer its value + # choices while consuming. + if test "$argv[1]" = ready; and test "$mode" != none + return 1 + end + set -l current (string join ' ' -- $path) + set -l target (string join ' ' -- $argv[2..-1]) + test "$current" = "$target" +end + +complete -c copilot -n '__copilot_at_path ready' -f -a 'login' -d 'Authenticate with Copilot' +complete -c copilot -n '__copilot_at_path ready' -f -a 'help' -d 'Display help information' +complete -c copilot -n '__copilot_at_path ready' -f -a 'init' -d 'Initialize Copilot instructions' +complete -c copilot -n '__copilot_at_path ready' -f -a 'update' -d 'Download the latest version' +complete -c copilot -n '__copilot_at_path ready' -f -a 'version' -d 'Display version information' +complete -c copilot -n '__copilot_at_path ready' -f -a 'plugin' -d 'Manage plugins' +complete -c copilot -n '__copilot_at_path ready' -f -a 'mcp' -d 'Manage MCP servers' +complete -c copilot -n '__copilot_at_path ready' -f -a 'plugins' -d 'Inspect configured plugins across kinds' +complete -c copilot -n '__copilot_at_path ready' -f -a 'skill' -d 'Manage skills' +complete -c copilot -n '__copilot_at_path ready' -f -a 'completion' -d 'Generate a shell completion script' +complete -c copilot -l version -s v -f -d 'show version information' +complete -c copilot -l interactive -s i -r -d 'Start interactive mode and automatically execute this prompt' +complete -c copilot -l prompt -s p -r -d 'Execute a prompt in non-interactive mode (exits after completion)' +complete -c copilot -l silent -s s -f -d 'Output only the agent response (no stats), useful for scripting with -p' +complete -c copilot -l enable-memory -f -d 'Enable memory in prompt mode (disabled by default)' +complete -c copilot -l model -r -f -a 'auto claude-sonnet-5 claude-fable-5 claude-opus-5 claude-opus-4.8 claude-opus-4.8-fast claude-opus-4.7 claude-sonnet-4.6 claude-opus-4.6 claude-sonnet-4.5 claude-opus-4.5 claude-haiku-4.5 gpt-5.6-sol gpt-5.6-terra gpt-5.6-luna gpt-5.5 gpt-5.4 gpt-5.4-mini gpt-5.3-codex gpt-5-mini mai-code-1-flash-picker gemini-3.7-flash gemini-3.6-flash gemini-3.5-flash gemini-3.1-pro-preview grok-4.5 kimi-k3 kimi-k2.7-code' +complete -c copilot -l model -r -f -d 'Set the AI model to use (use \'auto\' to let Copilot pick automatically)' +complete -c copilot -l effort -l reasoning-effort -r -f -a 'none minimal low medium high xhigh max' +complete -c copilot -l effort -l reasoning-effort -r -f -d 'Set the reasoning effort level' +complete -c copilot -l context -r -f -a 'default long_context' +complete -c copilot -l context -r -f -d 'Set the context window tier (overrides persisted setting)' +complete -c copilot -l enable-reasoning-summaries -f -d 'Request reasoning summaries for OpenAI models' +complete -c copilot -l agent -r -d 'Specify a custom agent to use' +complete -c copilot -l resume -s r -r -d 'Resume from a previous session (optionally specify existing session ID, task ID, ID prefix, or name; name matching is exact, case-insensitive)' +complete -c copilot -l continue -f -d 'Resume the most recent session' +complete -c copilot -l name -s n -r -d 'Set a name for the new session' +complete -c copilot -l session-id -r -d 'Resume an existing session or task by ID, or set the UUID for a new session' +complete -c copilot -l connect -r -d 'Connect directly to a remote session (optionally specify session ID or task ID)' +complete -c copilot -l allow-all-tools -f -d 'Allow all tools to run automatically without confirmation; required for non-interactive mode' +complete -c copilot -l allow-all-paths -f -d 'Disable file path verification and allow access to any path' +complete -c copilot -l disallow-temp-dir -f -d 'Prevent automatic access to the system temporary directory' +complete -c copilot -l no-custom-instructions -f -d 'Disable loading of custom instructions from AGENTS.md and related files' +complete -c copilot -l no-auto-update -f -d 'Disable downloading CLI update automatically (disabled by default in CI environments)' +complete -c copilot -l no-ask-user -f -d 'Disable the ask_user tool (agent works autonomously without asking questions)' +complete -c copilot -l banner -f -d 'Show the startup banner' +complete -c copilot -l no-color -f -d 'Disable all color output' +complete -c copilot -l screen-reader -f -d 'Enable screen reader optimizations' +complete -c copilot -l plain-diff -f -d 'Disable rich diff rendering (syntax highlighting via diff tool specified by git config)' +complete -c copilot -s C -r -d 'Change working directory before doing anything else' +complete -c copilot -l log-dir -r -d 'Set log file directory (default: ~/.copilot/logs/)' +complete -c copilot -l extension-sdk-path -r -d 'Override the bundled @github/copilot-sdk injected into extension subprocesses with a local `copilot-sdk/` folder. Invalid paths fall back to the bundled SDK.' +complete -c copilot -l log-level -r -f -a 'none error warning info debug all default' +complete -c copilot -l log-level -r -f -d 'Set the log level' +complete -c copilot -l stream -r -f -a 'on off' +complete -c copilot -l stream -r -f -d 'Enable or disable streaming mode' +complete -c copilot -l output-format -r -f -a 'text json' +complete -c copilot -l output-format -r -f -d 'Output format: \'text\' (default) or \'json\' (JSONL, one JSON object per line)' +complete -c copilot -l share -r -d 'Share session to markdown file after completion in non-interactive mode (default: ./copilot-session-.md)' +complete -c copilot -l share-gist -f -d 'Share session to a secret GitHub gist after completion in non-interactive mode' +complete -c copilot -l add-dir -r -d 'Add a directory to the allowed list for file access (can be used multiple times)' +complete -c copilot -l attachment -r -d 'Attach a file (image or native document) to the initial prompt; only valid in non-interactive mode (can be used multiple times)' +complete -c copilot -l disable-mcp-server -r -d 'Disable a specific MCP server (can be used multiple times)' +complete -c copilot -l disable-builtin-mcps -f -d 'Disable all built-in MCP servers (currently: github-mcp-server)' +complete -c copilot -l enable-all-github-mcp-tools -f -d 'Enable all GitHub MCP server tools instead of the default CLI subset. Overrides --add-github-mcp-toolset and --add-github-mcp-tool options.' +complete -c copilot -l add-github-mcp-toolset -r -d 'Add a toolset to enable for the GitHub MCP server instead of the default CLI subset (can be used multiple times). Use "all" for all toolsets.' +complete -c copilot -l add-github-mcp-tool -r -d 'Add a tool to enable for the GitHub MCP server instead of the default CLI subset (can be used multiple times). Use "*" for all tools.' +complete -c copilot -l plugin-dir -r -d 'Load a plugin from a local directory (can be used multiple times)' +complete -c copilot -l additional-mcp-config -r -d 'Additional MCP servers configuration as JSON string or file path (prefix with @) (can be used multiple times; augments config from ~/.copilot/mcp-config.json for this session)' +complete -c copilot -l allow-all-mcp-server-instructions -f -d 'Include initialization instructions from all MCP servers in the system prompt instead of only allowlisted servers' +complete -c copilot -l allow-tool -r -d 'Tools the CLI has permission to use; will not prompt for permission' +complete -c copilot -l deny-tool -r -d 'Tools the CLI does not have permission to use; will not prompt for permission' +complete -c copilot -l available-tools -r -d 'Only these tools will be available to the model' +complete -c copilot -l excluded-tools -r -d 'These tools will not be available to the model' +complete -c copilot -l secret-env-vars -r -d 'Environment variable names whose values are stripped from shell and MCP server environments and redacted from output (e.g., --secret-env-vars=MY_KEY,OTHER_KEY)' +complete -c copilot -l allow-url -r -d 'Allow access to specific URLs or domains' +complete -c copilot -l deny-url -r -d 'Deny access to specific URLs or domains, takes precedence over --allow-url' +complete -c copilot -l allow-all-urls -f -d 'Allow access to all URLs without confirmation' +complete -c copilot -l allow-all -f -d 'Enable all permissions (equivalent to --allow-all-tools --allow-all-paths --allow-all-urls)' +complete -c copilot -l yolo -f -d 'Enable all permissions (equivalent to --allow-all-tools --allow-all-paths --allow-all-urls)' +complete -c copilot -l max-autopilot-continues -r -d 'Maximum number of continuation messages in autopilot mode' +complete -c copilot -l mode -r -f -a 'interactive plan autopilot' +complete -c copilot -l mode -r -f -d 'Set the initial agent mode' +complete -c copilot -l autopilot -f -d 'Start in autopilot mode' +complete -c copilot -l plan -f -d 'Start in plan mode (combine with --mode autopilot to auto-approve the plan and implement it autonomously)' +complete -c copilot -l experimental -f -d 'Enable experimental features' +complete -c copilot -l no-experimental -f -d 'Disable experimental features' +complete -c copilot -l bash-env -r -d 'Enable BASH_ENV support for bash shells (on|off)' +complete -c copilot -l no-bash-env -f -d 'Disable BASH_ENV support for bash shells' +complete -c copilot -l mouse -r -d 'Enable mouse support in alt screen mode (on|off)' +complete -c copilot -l no-mouse -f -d 'Disable mouse support in alt screen mode' +complete -c copilot -l acp -f -d 'Start as Agent Client Protocol server' +complete -c copilot -l remote -f -d 'Enable remote control of your session from GitHub web and mobile' +complete -c copilot -l no-remote -f -d 'Disable remote control of your session from GitHub web and mobile' +complete -c copilot -l remote-export -f -d 'Export your session to GitHub web and mobile (read-only; does not enable remote control)' +complete -c copilot -l no-remote-export -f -d 'Disable exporting your session to GitHub web and mobile (also disables remote control)' +complete -c copilot -l max-ai-credits -r -d 'Set max AI credits for this session' +complete -c copilot -n '__copilot_at_path any login' -l host -r -d 'GitHub host URL (default: https://github.com)' +complete -c copilot -n '__copilot_at_path any login' -l device-code -f -d 'Authenticate using the OAuth device code flow (default in remote or headless environments)' +complete -c copilot -n '__copilot_at_path any login' -l web-flow -f -d 'Authenticate using the browser (web) flow (default on local desktops)' +complete -c copilot -n '__copilot_at_path ready update' -f -a 'stable prerelease' +complete -c copilot -n '__copilot_at_path ready plugin' -f -a 'install' -d 'Install a plugin' +complete -c copilot -n '__copilot_at_path ready plugin' -f -a 'uninstall' -d 'Uninstall a plugin' +complete -c copilot -n '__copilot_at_path ready plugin' -f -a 'update' -d 'Update a plugin' +complete -c copilot -n '__copilot_at_path ready plugin' -f -a 'list' -d 'List installed and --plugin-dir plugins' +complete -c copilot -n '__copilot_at_path ready plugin' -f -a 'marketplace' -d 'Manage plugin marketplaces' +complete -c copilot -n '__copilot_at_path any plugin update' -l all -f -d 'Update all installed plugins' +complete -c copilot -n '__copilot_at_path ready plugin marketplace' -f -a 'add' -d 'Add a marketplace' +complete -c copilot -n '__copilot_at_path ready plugin marketplace' -f -a 'remove' -d 'Remove a marketplace' +complete -c copilot -n '__copilot_at_path ready plugin marketplace' -f -a 'list' -d 'List registered marketplaces' +complete -c copilot -n '__copilot_at_path ready plugin marketplace' -f -a 'browse' -d 'Browse plugins in a marketplace' +complete -c copilot -n '__copilot_at_path ready plugin marketplace' -f -a 'update' -d 'Update marketplace plugin catalogs' +complete -c copilot -n '__copilot_at_path any plugin marketplace remove' -l force -s f -f -d 'Force removal even if plugins are installed' +complete -c copilot -n '__copilot_at_path ready mcp' -f -a 'list' -d 'List configured MCP servers' +complete -c copilot -n '__copilot_at_path ready mcp' -f -a 'get' -d 'Show server details' +complete -c copilot -n '__copilot_at_path ready mcp' -f -a 'add' -d 'Add an MCP server' +complete -c copilot -n '__copilot_at_path ready mcp' -f -a 'remove' -d 'Remove an MCP server' +complete -c copilot -n '__copilot_at_path any mcp list' -l json -f -d 'Output as JSON' +complete -c copilot -n '__copilot_at_path any mcp get' -l json -f -d 'Output as JSON' +complete -c copilot -n '__copilot_at_path any mcp get' -l show-secrets -f -d 'Show full environment variable and header values (masked by default)' +complete -c copilot -n '__copilot_at_path any mcp add' -l transport -r -f -a 'stdio http sse' +complete -c copilot -n '__copilot_at_path any mcp add' -l transport -r -f -d 'Server transport' +complete -c copilot -n '__copilot_at_path any mcp add' -l env -r -d 'Environment variable (KEY=VALUE, can be repeated)' +complete -c copilot -n '__copilot_at_path any mcp add' -l header -r -d 'HTTP header for remote servers, can be repeated' +complete -c copilot -n '__copilot_at_path any mcp add' -l tools -r -d 'Tool filter: "*" for all, comma-separated list, or "" for none' +complete -c copilot -n '__copilot_at_path any mcp add' -l timeout -r -d 'Timeout in milliseconds' +complete -c copilot -n '__copilot_at_path any mcp add' -l json -f -d 'Output added config as JSON' +complete -c copilot -n '__copilot_at_path any mcp add' -l show-secrets -f -d 'Show full environment variable and header values in output, masked by default' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'list' -d 'List configured plugins across kinds' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'enable' -d 'Enable a configured tool' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'disable' -d 'Disable a configured tool' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'remove' -d 'Remove an installed tool' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'rm' -d 'Remove an installed tool' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'install' -d 'Install a new tool' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'add' -d 'Install a new tool' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'update' -d 'Update a plugin' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'marketplace' -d 'Manage plugin marketplaces' +complete -c copilot -n '__copilot_at_path ready plugins' -f -a 'marketplaces' -d 'Manage plugin marketplaces' +complete -c copilot -n '__copilot_at_path any plugins list' -l kind -r -d 'Filter by kind. Repeatable or comma-separated. Supported: plugin, mcp, skill, instruction, lsp.' +complete -c copilot -n '__copilot_at_path any plugins list' -l scope -r -d 'Filter by scope. Repeatable or comma-separated. Supported: user, repository, working-directory, organization, plugin, builtin, unknown.' +complete -c copilot -n '__copilot_at_path any plugins list' -l json -f -d 'Emit machine-readable JSON instead of grouped text' +complete -c copilot -n '__copilot_at_path any plugins enable' -l plugin -f -d 'Target a plugin (default)' +complete -c copilot -n '__copilot_at_path any plugins enable' -l mcp -f -d 'Target an MCP server' +complete -c copilot -n '__copilot_at_path any plugins enable' -l skill -f -d 'Target a skill' +complete -c copilot -n '__copilot_at_path any plugins disable' -l plugin -f -d 'Target a plugin (default)' +complete -c copilot -n '__copilot_at_path any plugins disable' -l mcp -f -d 'Target an MCP server' +complete -c copilot -n '__copilot_at_path any plugins disable' -l skill -f -d 'Target a skill' +complete -c copilot -n '__copilot_at_path any plugins remove' -l plugin -f -d 'Remove a plugin (default)' +complete -c copilot -n '__copilot_at_path any plugins remove' -l mcp -f -d 'Remove an MCP server' +complete -c copilot -n '__copilot_at_path any plugins remove' -l skill -f -d 'Remove a personal or project skill' +complete -c copilot -n '__copilot_at_path any plugins rm' -l plugin -f -d 'Remove a plugin (default)' +complete -c copilot -n '__copilot_at_path any plugins rm' -l mcp -f -d 'Remove an MCP server' +complete -c copilot -n '__copilot_at_path any plugins rm' -l skill -f -d 'Remove a personal or project skill' +complete -c copilot -n '__copilot_at_path any plugins install' -l plugin -f -d 'Install a plugin (default)' +complete -c copilot -n '__copilot_at_path any plugins install' -l skill -f -d 'Install a skill from a local path or URL' +complete -c copilot -n '__copilot_at_path any plugins install' -l mcp -f -d 'Install an MCP server (not supported here — see below)' +complete -c copilot -n '__copilot_at_path any plugins install' -l scope -r -f -a 'user project' +complete -c copilot -n '__copilot_at_path any plugins install' -l scope -r -f -d 'Install target for a file/URL --skill: user (default) or project' +complete -c copilot -n '__copilot_at_path any plugins add' -l plugin -f -d 'Install a plugin (default)' +complete -c copilot -n '__copilot_at_path any plugins add' -l skill -f -d 'Install a skill from a local path or URL' +complete -c copilot -n '__copilot_at_path any plugins add' -l mcp -f -d 'Install an MCP server (not supported here — see below)' +complete -c copilot -n '__copilot_at_path any plugins add' -l scope -r -f -a 'user project' +complete -c copilot -n '__copilot_at_path any plugins add' -l scope -r -f -d 'Install target for a file/URL --skill: user (default) or project' +complete -c copilot -n '__copilot_at_path any plugins update' -l all -f -d 'Update all installed plugins' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'list' -d 'List registered plugin marketplaces' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'ls' -d 'List registered plugin marketplaces' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'add' -d 'Add a plugin marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'remove' -d 'Remove a plugin marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'rm' -d 'Remove a plugin marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'browse' -d 'Browse plugins in a marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'update' -d 'Refresh marketplace plugin catalogs' +complete -c copilot -n '__copilot_at_path ready plugins marketplace' -f -a 'refresh' -d 'Refresh marketplace plugin catalogs' +complete -c copilot -n '__copilot_at_path any plugins marketplace list' -l json -f -d 'Emit machine-readable JSON instead of grouped text' +complete -c copilot -n '__copilot_at_path any plugins marketplace ls' -l json -f -d 'Emit machine-readable JSON instead of grouped text' +complete -c copilot -n '__copilot_at_path any plugins marketplace remove' -l force -f -d 'Also uninstall every plugin sourced from this marketplace' +complete -c copilot -n '__copilot_at_path any plugins marketplace rm' -l force -f -d 'Also uninstall every plugin sourced from this marketplace' +complete -c copilot -n '__copilot_at_path any plugins marketplace browse' -l json -f -d 'Emit machine-readable JSON instead of grouped text' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'list' -d 'List registered plugin marketplaces' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'ls' -d 'List registered plugin marketplaces' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'add' -d 'Add a plugin marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'remove' -d 'Remove a plugin marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'rm' -d 'Remove a plugin marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'browse' -d 'Browse plugins in a marketplace' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'update' -d 'Refresh marketplace plugin catalogs' +complete -c copilot -n '__copilot_at_path ready plugins marketplaces' -f -a 'refresh' -d 'Refresh marketplace plugin catalogs' +complete -c copilot -n '__copilot_at_path any plugins marketplaces list' -l json -f -d 'Emit machine-readable JSON instead of grouped text' +complete -c copilot -n '__copilot_at_path any plugins marketplaces ls' -l json -f -d 'Emit machine-readable JSON instead of grouped text' +complete -c copilot -n '__copilot_at_path any plugins marketplaces remove' -l force -f -d 'Also uninstall every plugin sourced from this marketplace' +complete -c copilot -n '__copilot_at_path any plugins marketplaces rm' -l force -f -d 'Also uninstall every plugin sourced from this marketplace' +complete -c copilot -n '__copilot_at_path any plugins marketplaces browse' -l json -f -d 'Emit machine-readable JSON instead of grouped text' +complete -c copilot -n '__copilot_at_path ready skill' -f -a 'list' -d 'List available skills' +complete -c copilot -n '__copilot_at_path ready skill' -f -a 'add' -d 'Add a skill from a file, URL, or directory' +complete -c copilot -n '__copilot_at_path ready skill' -f -a 'remove' -d 'Remove a skill or custom skill directory' +complete -c copilot -n '__copilot_at_path any skill list' -l json -f -d 'Output as JSON' +complete -c copilot -n '__copilot_at_path any skill add' -l project -f -d 'Install the skill into the project\'s .github/skills directory' +complete -c copilot -n '__copilot_at_path ready completion' -f -a 'bash zsh fish' diff --git a/completions/wt.fish b/completions/wt.fish new file mode 100644 index 0000000..6aac615 --- /dev/null +++ b/completions/wt.fish @@ -0,0 +1,2 @@ +# worktrunk completions for fish +complete --keep-order --exclusive --command wt --arguments "(test -n \"\$WORKTRUNK_BIN\"; or set -l WORKTRUNK_BIN (type -P wt 2>/dev/null); and COMPLETE=fish \$WORKTRUNK_BIN -- (commandline --current-process --tokenize --cut-at-cursor) (commandline --current-token))"