aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/sh/rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index d5a9bc7d..df07f8e4 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"