mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
Add history --help
This was probably an oversight - the builtin supports it, the function doesn't.
This commit is contained in:
parent
0e18e2ba78
commit
aacdaee6a9
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,8 @@ function history --description "Deletes an item from history"
|
|||
set cmd print
|
||||
case --merge
|
||||
set cmd merge
|
||||
case --help
|
||||
set cmd help
|
||||
case --
|
||||
set -e argv[$i]
|
||||
break
|
||||
|
@ -131,6 +133,8 @@ function history --description "Deletes an item from history"
|
|||
builtin history $argv
|
||||
case merge
|
||||
builtin history --merge
|
||||
case help
|
||||
builtin history --help
|
||||
case clear
|
||||
# Erase the entire history
|
||||
echo "Are you sure you want to clear history ? (y/n)"
|
||||
|
|
Loading…
Reference in a new issue