zsh comments

This commit is contained in:
Jack
2020-05-26 07:51:21 +03:00
parent a453685a7f
commit f02283efa7
+2
View File
@@ -140,6 +140,7 @@ elif [[ "${SHELL}" =~ /zsh ]]; then
echo "Please execute this script with zsh version 5.5 or higher." echo "Please execute this script with zsh version 5.5 or higher."
exit exit
fi fi
# make zsh parse the script (almost) like bash
setopt extendedglob sh_word_split ksh_arrays posix_argzero nullglob setopt extendedglob sh_word_split ksh_arrays posix_argzero nullglob
else else
echo "Can't determine SHELL. Exiting." echo "Can't determine SHELL. Exiting."
@@ -1498,6 +1499,7 @@ function would_you_like_to_know_less() {
} }
function prompt_delete_y_n() { function prompt_delete_y_n() {
# workaround for zsh-bash differences in read
delete="" delete=""
if [[ -t 1 ]]; then if [[ -t 1 ]]; then
if [[ "${SHELL}" =~ /zsh ]]; then if [[ "${SHELL}" =~ /zsh ]]; then