mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Provide completions for history
without search
subcommand (#8588)
This commit is contained in:
parent
69b5a3535c
commit
8abc6b2f8c
1 changed files with 8 additions and 8 deletions
|
@ -4,23 +4,23 @@ set -l __fish_history_all_commands search delete save merge clear clear-session
|
|||
complete -c history -s h -l help -d "Display help and exit"
|
||||
|
||||
# Note that these options are only valid with the "search" and "delete" subcommands.
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s p -l prefix -d "Match items beginning with the string"
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s c -l contains -d "Match items containing the string"
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s e -l exact -d "Match items identical to the string"
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s t -l show-time -d "Output with timestamps"
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search delete; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s C -l case-sensitive -d "Match items in a case-sensitive manner"
|
||||
|
||||
# Note that these options are only valid with the "search" subcommand.
|
||||
complete -c history -n '__fish_seen_subcommand_from search' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s n -l max -d "Limit output to the first 'n' matches" -x
|
||||
complete -c history -n '__fish_seen_subcommand_from search' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s z -l null -d "Terminate entries with NUL character"
|
||||
complete -c history -n '__fish_seen_subcommand_from search' \
|
||||
complete -c history -n '__fish_seen_subcommand_from search; or not __fish_seen_subcommand_from $__fish_history_all_commands' \
|
||||
-s R -l reverse -d "Output the oldest results first" -x
|
||||
|
||||
# We don't include a completion for the "save" subcommand because it should not be used
|
||||
|
|
Loading…
Reference in a new issue