Files
fish-config/functions/__clear_repeat.fish

8 lines
196 B
Fish

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