function __clear_repeat --description "Clear the screen and re-run the last command" set -l last $history[1] or return clear commandline -r -- $last commandline -f execute end