mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +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
|
set cmd print
|
||||||
case --merge
|
case --merge
|
||||||
set cmd merge
|
set cmd merge
|
||||||
|
case --help
|
||||||
|
set cmd help
|
||||||
case --
|
case --
|
||||||
set -e argv[$i]
|
set -e argv[$i]
|
||||||
break
|
break
|
||||||
|
@ -131,6 +133,8 @@ function history --description "Deletes an item from history"
|
||||||
builtin history $argv
|
builtin history $argv
|
||||||
case merge
|
case merge
|
||||||
builtin history --merge
|
builtin history --merge
|
||||||
|
case help
|
||||||
|
builtin history --help
|
||||||
case clear
|
case clear
|
||||||
# Erase the entire history
|
# Erase the entire history
|
||||||
echo "Are you sure you want to clear history ? (y/n)"
|
echo "Are you sure you want to clear history ? (y/n)"
|
||||||
|
|
Loading…
Reference in a new issue