summary refs log tree commit diff stats
path: root/examples/shell_subshell_notice.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shell_subshell_notice.sh')
-rw-r--r--examples/shell_subshell_notice.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/shell_subshell_notice.sh b/examples/shell_subshell_notice.sh
new file mode 100644
index 00000000..a3c39dc0
--- /dev/null
+++ b/examples/shell_subshell_notice.sh
@@ -0,0 +1,7 @@
+# Compatible with ranger 1.5.3 through 1.9.*
+#
+# Change the prompt when you open a shell from inside ranger
+#
+# Add this line to your shell startup file (.bashrc, .zshrc etc) for it to work.
+
+[ -n "$RANGER_LEVEL" ] && PS1="$PS1"'(in ranger) '