aboutsummaryrefslogtreecommitdiff
path: root/shellrc
diff options
context:
space:
mode:
Diffstat (limited to 'shellrc')
-rw-r--r--shellrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/shellrc b/shellrc
index 62bd2f1..5e65a79 100644
--- a/shellrc
+++ b/shellrc
@@ -33,6 +33,14 @@ alias v='vim'
alias i='i3-msg'
alias ra='ranger'
+# ranger alias with nesting control
+rg() {
+ if [ -z "$RANGER_LEVEL" ]; then
+ ranger
+ else
+ exit
+ fi
+}
# Do not load system configuration for ranger (use only user one)
export RANGER_LOAD_DEFAULT_RC=FALSE