Remove undeeded checks in bookmark.zsh
This commit is contained in:
parent
4551e24f7a
commit
9b843e6f51
@ -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}'"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user