aboutsummaryrefslogtreecommitdiff
path: root/shellrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-01-07 15:29:28 +0100
committerKarel Kočí <cynerd@email.cz>2017-01-07 15:29:28 +0100
commit86874438bcb36c27d5519e5d3bc449f4b45698c2 (patch)
tree17423b9a56a5d1f99e68a0575e52c8f7af4b9feb /shellrc
parentae379e5e4b2a9d08f221e0d8742537a6f60ad19f (diff)
downloadmyconfigs-86874438bcb36c27d5519e5d3bc449f4b45698c2.tar.gz
myconfigs-86874438bcb36c27d5519e5d3bc449f4b45698c2.tar.bz2
myconfigs-86874438bcb36c27d5519e5d3bc449f4b45698c2.zip
Some more ranger settings
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