aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-09-20 07:11:39 -0300
committerEuAndreh <eu@euandre.org>2023-09-20 07:11:39 -0300
commit58c4b78732ea13aad5f1da843e11a533feca3ba2 (patch)
treecdafcccd66a696a3be37a2ad7142a97cae2d9da2
parentbin/{uuid,gen-password}: Use /dev/urandom over /dev/random (diff)
downloaddotfiles-58c4b78732ea13aad5f1da843e11a533feca3ba2.tar.gz
dotfiles-58c4b78732ea13aad5f1da843e11a533feca3ba2.tar.xz
etc/sh/rc: Add rr() function
-rw-r--r--etc/sh/rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index d5a9bc7..df07f8e 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -391,6 +391,13 @@ r() {
. ~/.profile
}
+rr() {
+ r
+ if [ -e .envrc ]; then
+ direnv allow
+ fi
+}
+
_edit_without_executing() {
F="$(mkstemp)"
printf '%s\n' "$READLINE_LINE" > "$F"