From 65721319e06789763798d0db1a7c24a08fee0bcd Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sat, 2 Nov 2019 15:21:20 +0200 Subject: Renamed script files to not mention Bash --- examples/shell_subshell_notice.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 examples/shell_subshell_notice.sh (limited to 'examples/shell_subshell_notice.sh') 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) ' -- cgit 1.4.1-2-gfad0 From aebcf5bc82fbb1f478d1ec62a0701774bcdd6b1c Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Wed, 6 Nov 2019 21:47:03 +0200 Subject: Removed shebangs --- examples/shell_automatic_cd.sh | 2 -- examples/shell_subshell_notice.sh | 2 -- 2 files changed, 4 deletions(-) (limited to 'examples/shell_subshell_notice.sh') diff --git a/examples/shell_automatic_cd.sh b/examples/shell_automatic_cd.sh index 294f3aaa..952a0564 100644 --- a/examples/shell_automatic_cd.sh +++ b/examples/shell_automatic_cd.sh @@ -1,5 +1,3 @@ -#!/bin/sh - # Compatible with ranger 1.4.2 through 1.7.* # # Automatically change the current working directory after closing ranger diff --git a/examples/shell_subshell_notice.sh b/examples/shell_subshell_notice.sh index b64ca7fa..a79712ee 100644 --- a/examples/shell_subshell_notice.sh +++ b/examples/shell_subshell_notice.sh @@ -1,5 +1,3 @@ -#!/bin/sh - # Compatible with ranger 1.5.3 through 1.7.* # # Change the prompt when you open a shell from inside ranger -- cgit 1.4.1-2-gfad0 From 918da47421cd4f162d2ecce4f0eeef3bc3e7a3ab Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Wed, 6 Nov 2019 21:47:30 +0200 Subject: Updated comments about compatibility with ranger versions --- examples/shell_automatic_cd.sh | 2 +- examples/shell_subshell_notice.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/shell_subshell_notice.sh') diff --git a/examples/shell_automatic_cd.sh b/examples/shell_automatic_cd.sh index 952a0564..136c1e26 100644 --- a/examples/shell_automatic_cd.sh +++ b/examples/shell_automatic_cd.sh @@ -1,4 +1,4 @@ -# Compatible with ranger 1.4.2 through 1.7.* +# Compatible with ranger 1.4.2 through 1.9.* # # Automatically change the current working directory after closing ranger # diff --git a/examples/shell_subshell_notice.sh b/examples/shell_subshell_notice.sh index a79712ee..a3c39dc0 100644 --- a/examples/shell_subshell_notice.sh +++ b/examples/shell_subshell_notice.sh @@ -1,4 +1,4 @@ -# Compatible with ranger 1.5.3 through 1.7.* +# Compatible with ranger 1.5.3 through 1.9.* # # Change the prompt when you open a shell from inside ranger # -- cgit 1.4.1-2-gfad0 From 77154c4e07d2ccb2288361e303b2484523947189 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Wed, 6 Nov 2019 22:30:20 +0200 Subject: Added a notice about sourcing examples/shell_subshell_notice.sh as well --- examples/shell_subshell_notice.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/shell_subshell_notice.sh') diff --git a/examples/shell_subshell_notice.sh b/examples/shell_subshell_notice.sh index a3c39dc0..1db88bfc 100644 --- a/examples/shell_subshell_notice.sh +++ b/examples/shell_subshell_notice.sh @@ -2,6 +2,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. +# Source this file from your shell startup file (.bashrc, .zshrc etc) for it to +# work. [ -n "$RANGER_LEVEL" ] && PS1="$PS1"'(in ranger) ' -- cgit 1.4.1-2-gfad0 From 5dc0d60a56679da5f98cfc8a03273ccafa6d016a Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Wed, 6 Nov 2019 22:38:54 +0200 Subject: Added shellcheck directives for specifying shell --- examples/shell_automatic_cd.sh | 2 ++ examples/shell_subshell_notice.sh | 2 ++ 2 files changed, 4 insertions(+) (limited to 'examples/shell_subshell_notice.sh') diff --git a/examples/shell_automatic_cd.sh b/examples/shell_automatic_cd.sh index c4d79cb9..391946c7 100644 --- a/examples/shell_automatic_cd.sh +++ b/examples/shell_automatic_cd.sh @@ -1,3 +1,5 @@ +# shellcheck shell=sh + # Compatible with ranger 1.4.2 through 1.9.* # # Automatically change the current working directory after closing ranger diff --git a/examples/shell_subshell_notice.sh b/examples/shell_subshell_notice.sh index 1db88bfc..0d8d2431 100644 --- a/examples/shell_subshell_notice.sh +++ b/examples/shell_subshell_notice.sh @@ -1,3 +1,5 @@ +# shellcheck shell=sh + # Compatible with ranger 1.5.3 through 1.9.* # # Change the prompt when you open a shell from inside ranger -- cgit 1.4.1-2-gfad0