8 lines
196 B
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 |