aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/history.fish
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-05 00:40:42 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-05 00:40:42 -0700
commit3836bfe5a109ef87cc36fc42747b0cab43fc861d (patch)
tree843986d680eec1b7796c4b0143a2e35404e1f70f /share/completions/history.fish
parent7698553c3a76261518f93cbd17c55f11842071d7 (diff)
Added history completion file
Updated history function to assume --search as the default behavior
Diffstat (limited to 'share/completions/history.fish')
-rw-r--r--share/completions/history.fish5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/completions/history.fish b/share/completions/history.fish
new file mode 100644
index 00000000..e2e5c11a
--- /dev/null
+++ b/share/completions/history.fish
@@ -0,0 +1,5 @@
+complete -c history -r -l prefix --description "Match history items that start with the given prefix"
+complete -c history -r -l contains --description "Match history items that contain the given string"
+complete -c history -l search --description "Print matching history items, which is the default behavior"
+complete -c history -l delete --description "Interactively delete matching history items"
+complete -c history -l clear --description "Clear your entire history"