mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge f7c766fb9e into 1b7a3ea99a
This commit is contained in:
commit
7bf3d045d9
1 changed files with 2 additions and 2 deletions
|
|
@ -64,9 +64,9 @@ wd_warp()
|
||||||
|
|
||||||
wd_add()
|
wd_add()
|
||||||
{
|
{
|
||||||
if [[ $2 =~ "^\.+$" || $2 =~ "^\s*$" ]]
|
if [[ $2 -regex-match "^\.+$" || $2 -regex-match "^\s*$" ]]
|
||||||
then
|
then
|
||||||
wd_print_msg $RED "Illegal warp point (see README)."
|
wd_print_msg $RED "Warp point name cannot be just dots or spaces"
|
||||||
elif [[ ${points[$2]} == "" ]] || $1
|
elif [[ ${points[$2]} == "" ]] || $1
|
||||||
then
|
then
|
||||||
wd_remove $2 > /dev/null
|
wd_remove $2 > /dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue