diff --git a/sh/.config/sh/alias b/sh/.config/sh/alias index ae0edbf..f316329 100644 --- a/sh/.config/sh/alias +++ b/sh/.config/sh/alias @@ -43,6 +43,14 @@ alias md="mkdir -p" # clear my screen alias cl="clear" +# clear screen AND re-run last command +# Is presumably not fully portable, see +# https://overflow.hostux.net/questions/24223811/getting-last-executed-command-from-script# +cll() { + lastfun="$(fc -n -l -1 -1)" + clear + eval "$lastfun" +} # Display current external ip address alias myip="curl -s icanhazip.com"