diff options
-rw-r--r-- | examples/bash_automatic_cd.sh | 8 | ||||
-rw-r--r-- | examples/bash_subshell_notice.sh | 4 |
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) ' |