summary refs log tree commit diff stats
path: root/doc/examples/bash_subshell_notice.sh
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-09 18:48:02 +0100
committerhut <hut@lavabit.com>2013-03-09 18:48:02 +0100
commitd2c7d024290ee95afa418975c728ad64172dcfec (patch)
treeeea0659eab7bb0c7b9cc2026468c840d7f22a5c9 /doc/examples/bash_subshell_notice.sh
parent62af277734f05f27f20467393c9d997012ddd2b4 (diff)
downloadranger-d2c7d024290ee95afa418975c728ad64172dcfec.tar.gz
move examples to doc/examples
Diffstat (limited to 'doc/examples/bash_subshell_notice.sh')
-rw-r--r--doc/examples/bash_subshell_notice.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/examples/bash_subshell_notice.sh b/doc/examples/bash_subshell_notice.sh
new file mode 100644
index 00000000..bc44d5a8
--- /dev/null
+++ b/doc/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) '