dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

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:
M.profile | 1+
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() {