dotfiles/sh/.config
Marty Oehme 7eeeb9e85d
sh: Add clear and rerun function
Added simple function to clear the screen but additionally re-run the
last executed command.

Mirroring my clear screen alias `cl`, this one is executed with `cll`
(clear-and-last) currently.

It comes in useful for me every now and again because I sometimes just
need a quick way to get rid of 'clutter' on my terminal (e.g. running
multiple rg invocations after each other, or diffs, or anything that
spews a bunch of stuff on screen and I want to find specific things
afterwards).
I am very used to running `cl` and then the second to last history item.
This makes those additional keystrokes unnecessary.
2024-06-05 12:10:26 +02:00
..
sh sh: Add clear and rerun function 2024-06-05 12:10:26 +02:00