mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 00:21:15 -03:00
Add history --help
This was probably an oversight - the builtin supports it, the function doesn't.
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user