mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Fixed wd plugin bug on zsh <= 4.3.10
See http://www.zsh.org/mla/workers/2014/msg00501.html for details. At time of writing, some RedHat and CentOS still have 4.3.10 as the most up-to-date zsh in their package managers, so this should allow wd to work on those systems properly.
This commit is contained in:
parent
3913106b2e
commit
f7c766fb9e
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