about summary refs log tree commit diff stats
path: root/examples/shell_subshell_notice.sh
diff options
context:
space:
mode:
authorDmytro Meleshko <dmytro.meleshko@gmail.com>2019-11-02 15:21:20 +0200
committerDmytro Meleshko <dmytro.meleshko@gmail.com>2019-11-02 16:28:16 +0200
commit65721319e06789763798d0db1a7c24a08fee0bcd (patch)
tree7c1a5362cd3452bd2a6bad72043ef8d5baf6327d /examples/shell_subshell_notice.sh
parent9658e1127aa1b451b1a92d7d911b83b2c5c95d7d (diff)
downloadranger-65721319e06789763798d0db1a7c24a08fee0bcd.tar.gz
Renamed script files to not mention Bash
Diffstat (limited to 'examples/shell_subshell_notice.sh')
-rw-r--r--examples/shell_subshell_notice.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/shell_subshell_notice.sh b/examples/shell_subshell_notice.sh
new file mode 100644
index 00000000..b64ca7fa
--- /dev/null
+++ b/examples/shell_subshell_notice.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Compatible with ranger 1.5.3 through 1.7.*
+#
+# 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) '