config/fish/functions/forget.fish

4 lines
123 B
Fish

function forget --description "Forget the most recent command"
history delete --case-sensitive --exact $history[1]
end