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