aboutsummaryrefslogtreecommitdiff
path: root/shellrc
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-01-09 08:10:37 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-01-09 08:10:37 +0100
commitd7f2a7bc49ee1f52dfecd84fd1e04612db89036e (patch)
treea45fa7e871d235139db1fee1cdd1d584b8c8e45c /shellrc
parent95865067af8988cb81bf89352fae3961d12a4a9e (diff)
parent30791e34030b2c31ecd726d892f24ff839a7a0fc (diff)
downloadmyconfigs-d7f2a7bc49ee1f52dfecd84fd1e04612db89036e.tar.gz
myconfigs-d7f2a7bc49ee1f52dfecd84fd1e04612db89036e.tar.bz2
myconfigs-d7f2a7bc49ee1f52dfecd84fd1e04612db89036e.zip
Merge branch 'master' of cynerd.cz:myconfigs
Diffstat (limited to 'shellrc')
-rw-r--r--shellrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/shellrc b/shellrc
index f1bc6fe..fb5d5bd 100644
--- a/shellrc
+++ b/shellrc
@@ -32,6 +32,17 @@ alias gst='git status'
alias v='vim'
alias i='i3-msg'
+# 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
+
# Systemd aliases if we are running systemd
if pidof systemd >/dev/null 2>/dev/null; then
alias sctl='sudo systemctl'