Permalink
Browse files

Merge pull request #125 from KenMacD/zsh

Use -pcre-match in .zsh instead of =~.
  • Loading branch information...
2 parents e62e720 + ee1be03 commit 3fdc2131491557ff189c6d5deb2de7f8921f00ef @wting committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/autojump.zsh
View
2 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

0 comments on commit 3fdc213

Please sign in to comment.