1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Change operators that aren't supported in MinGW

This commit is contained in:
John Simon 2013-03-07 15:35:05 -05:00
parent f261e0ae7a
commit 79d8763944

View File

@ -33,7 +33,7 @@ if [[ -n ${AUTOJUMP_AUTOCOMPLETE_CMDS} ]]; then
fi fi
#determine the data directory according to the XDG Base Directory Specification #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} = ${USER} ]]; then
export AUTOJUMP_DATA_DIR="${XDG_DATA_HOME}/autojump" export AUTOJUMP_DATA_DIR="${XDG_DATA_HOME}/autojump"
else else
export AUTOJUMP_DATA_DIR=~/.local/share/autojump export AUTOJUMP_DATA_DIR=~/.local/share/autojump
@ -73,7 +73,7 @@ case $PROMPT_COMMAND in
esac esac
function j { function j {
if [[ ${@} =~ ^-{1,2}.* ]]; then if [[ ${@} = -* ]]; then
autojump ${@} autojump ${@}
return return
fi fi