Remove undeeded checks in bookmark.zsh

This commit is contained in:
Alexander Rosenberg 2022-08-28 12:27:24 -07:00
parent 4551e24f7a
commit 9b843e6f51
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -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}'"
}