From ee1be0310b803e2b230be29630a6095f4f83e77a Mon Sep 17 00:00:00 2001 From: Kenny MacDermid Date: Sun, 20 May 2012 12:16:31 -0300 Subject: [PATCH] Use -pcre-match in .zsh instead of =~. Before zsh 4.3.5 =~ was not supported. This results in the message 'autojump.zsh:18: condition expected: =~'. --- bin/autojump.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/autojump.zsh b/bin/autojump.zsh index 7f15953..f0797ad 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -1,5 +1,5 @@ # determine the data directory according to the XDG Base Directory Specification -if [[ -n ${XDG_DATA_HOME} ]] && [[ ${XDG_DATA_HOME} =~ ${USER} ]]; then +if [[ -n ${XDG_DATA_HOME} ]] && [[ ${XDG_DATA_HOME} -pcre-match ${USER} ]]; then export AUTOJUMP_DATA_DIR="${XDG_DATA_HOME}/autojump" else export AUTOJUMP_DATA_DIR=${HOME}/.local/share/autojump