From 4614b7e1ea052fad3cf8a25b6d84e5ea32caccee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 7 Jan 2017 13:35:38 +0100 Subject: Add ranger --- shellrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shellrc') diff --git a/shellrc b/shellrc index f1bc6fe..62bd2f1 100644 --- a/shellrc +++ b/shellrc @@ -31,6 +31,10 @@ export LESS_TERMCAP_us=$'\E[1;32m' alias gst='git status' alias v='vim' alias i='i3-msg' +alias ra='ranger' + +# 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 -- cgit v1.2.3 From 86874438bcb36c27d5519e5d3bc449f4b45698c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 7 Jan 2017 15:29:28 +0100 Subject: Some more ranger settings --- shellrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shellrc') 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 -- cgit v1.2.3 From 4e3b859e358b1aafa00d9dd99c1f9af22894b865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 7 Jan 2017 15:32:17 +0100 Subject: Remove ra alias --- shellrc | 1 - 1 file changed, 1 deletion(-) (limited to 'shellrc') diff --git a/shellrc b/shellrc index 5e65a79..fb5d5bd 100644 --- a/shellrc +++ b/shellrc @@ -31,7 +31,6 @@ export LESS_TERMCAP_us=$'\E[1;32m' alias gst='git status' alias v='vim' alias i='i3-msg' -alias ra='ranger' # ranger alias with nesting control rg() { -- cgit v1.2.3