summary refs log tree commit diff stats
path: root/examples/bash_subshell_notice.sh
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-04-13 12:49:49 +0200
committerhut <hut@lepus.uberspace.de>2015-04-13 12:49:49 +0200
commitc0f2fc72eccb4127fba5f48ce4b422487d6ec752 (patch)
tree025f72dde6f7a7e5cdca82637da4e5dcef0ddd62 /examples/bash_subshell_notice.sh
parenta9bbdc440c2ea33ccc4470e00949ffa16ce2300e (diff)
downloadranger-c0f2fc72eccb4127fba5f48ce4b422487d6ec752.tar.gz
moved "doc/examples" to "examples" for more visibility
Diffstat (limited to 'examples/bash_subshell_notice.sh')
-rw-r--r--examples/bash_subshell_notice.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/bash_subshell_notice.sh b/examples/bash_subshell_notice.sh
new file mode 100644
index 00000000..bc44d5a8
--- /dev/null
+++ b/examples/bash_subshell_notice.sh
@@ -0,0 +1,7 @@
+# Compatible with ranger 1.5.3 through 1.6.*
+#
+# Change the prompt when you open a shell from inside ranger
+#
+# Add this line to your .bashrc for it to work.
+
+[ -n "$RANGER_LEVEL" ] && PS1="$PS1"'(in ranger) '