From 9b843e6f519cea24a383fa158c0ebfd956c2690c Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sun, 28 Aug 2022 12:27:24 -0700 Subject: [PATCH] Remove undeeded checks in bookmark.zsh --- bookmark.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookmark.zsh b/bookmark.zsh index 3b435b4..bca994f 100644 --- a/bookmark.zsh +++ b/bookmark.zsh @@ -36,7 +36,7 @@ function bmadd { local reply read -q 'reply?Overwrite? [y/N] ' printf '\n' - [[ "${reply}" =~ '[yY]([eE][sS])?' ]] || return 1 + [[ "${reply}" =~ '[yY]' ]] || return 1 fi ln -nfs "${real_path}" "${ZSH_BOOKMARK_DIR}/${bm_name}" echo "Created bookmark '${bm_name}'" @@ -49,7 +49,7 @@ function bmrm { local reply read -q 'reply?Really delete? [y/N] ' printf '\n' - [[ "${reply}" =~ '[yY]([eE][sS])?' ]] || return 1 + [[ "${reply}" =~ '[yY]' ]] || return 1 rm "${ZSH_BOOKMARK_DIR}/${1}" echo "Deleted bookmark '${1}'" }