commit 4ee4f72e5ba0b7d6e73cc53f5ec4dcce1d864ff9
parent 87d8dfebe8718fa58bb5c0a97d7728c9df76f8a0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 19 Oct 2020 10:51:44 +0200
.profile: add rr alias for repeating previous command as root
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.profile b/.profile
@@ -17,6 +17,7 @@ export GPG_TTY
alias e='$EDITOR'
alias c=clear
alias r='fc -s'
+alias rr='_c="$(tail -2 $HISTFILE | head -1)" && echo "$_c" && doas sh -ec "$_c"'
alias g=git
f() {