about summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authorDmytro Meleshko <dmytro.meleshko@gmail.com>2019-11-02 15:20:12 +0200
committerDmytro Meleshko <dmytro.meleshko@gmail.com>2019-11-02 15:20:12 +0200
commit9658e1127aa1b451b1a92d7d911b83b2c5c95d7d (patch)
tree4d575d4adaf6c21e2ae2f89a1c42bc9b600ca741 /examples
parent4f6edb554e447eb8e10143879be6306e172630f3 (diff)
downloadranger-9658e1127aa1b451b1a92d7d911b83b2c5c95d7d.tar.gz
Added shebangs and removed notices specifically about Bash
Diffstat (limited to 'examples')
-rw-r--r--examples/bash_automatic_cd.sh8
-rw-r--r--examples/bash_subshell_notice.sh4
2 files changed, 8 insertions, 4 deletions
diff --git a/examples/bash_automatic_cd.sh b/examples/bash_automatic_cd.sh
index 5ba9d942..294f3aaa 100644
--- a/examples/bash_automatic_cd.sh
+++ b/examples/bash_automatic_cd.sh
@@ -1,9 +1,11 @@
+#!/bin/sh
+
 # Compatible with ranger 1.4.2 through 1.7.*
 #
-# Automatically change the directory in bash after closing ranger
+# Automatically change the current working directory after closing ranger
 #
-# This is a bash function for .bashrc to automatically change the directory to
-# the last visited one after ranger quits.
+# This is a shell function to automatically change the current working
+# directory to the last visited one after ranger quits.
 # To undo the effect of this function, you can type "cd -" to return to the
 # original directory.
 
diff --git a/examples/bash_subshell_notice.sh b/examples/bash_subshell_notice.sh
index 4c9269c4..b64ca7fa 100644
--- a/examples/bash_subshell_notice.sh
+++ b/examples/bash_subshell_notice.sh
@@ -1,7 +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 .bashrc for it to work.
+# Add this line to your shell startup file (.bashrc, .zshrc etc) for it to work.
 
 [ -n "$RANGER_LEVEL" ] && PS1="$PS1"'(in ranger) '