summary refs log tree commit diff stats
path: root/examples/bash_subshell_notice.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bash_subshell_notice.sh')
-rw-r--r--examples/bash_subshell_notice.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/bash_subshell_notice.sh b/examples/bash_subshell_notice.sh
new file mode 100644
index 00000000..b6b03d74
--- /dev/null
+++ b/examples/bash_subshell_notice.sh
@@ -0,0 +1,5 @@
+# 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) '