|
|
@ -20,7 +20,7 @@ command -v brew &>/dev/null \
|
|
|
|
&& [[ -d "`brew --prefix`/share/zsh/site-functions" ]] \
|
|
|
|
&& [[ -d "`brew --prefix`/share/zsh/site-functions" ]] \
|
|
|
|
&& fpath=(`brew --prefix`/share/zsh/site-functions ${fpath})
|
|
|
|
&& fpath=(`brew --prefix`/share/zsh/site-functions ${fpath})
|
|
|
|
|
|
|
|
|
|
|
|
function autojump_chpwd() {
|
|
|
|
autojump_chpwd() {
|
|
|
|
if [[ "${AUTOJUMP_KEEP_SYMLINKS}" == "1" ]]; then
|
|
|
|
if [[ "${AUTOJUMP_KEEP_SYMLINKS}" == "1" ]]; then
|
|
|
|
_PWD_ARGS=""
|
|
|
|
_PWD_ARGS=""
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -32,7 +32,7 @@ function autojump_chpwd() {
|
|
|
|
typeset -gaU chpwd_functions
|
|
|
|
typeset -gaU chpwd_functions
|
|
|
|
chpwd_functions+=autojump_chpwd
|
|
|
|
chpwd_functions+=autojump_chpwd
|
|
|
|
|
|
|
|
|
|
|
|
function j {
|
|
|
|
j() {
|
|
|
|
# Cannot use =~ due to MacPorts zsh v4.2, see issue #125.
|
|
|
|
# Cannot use =~ due to MacPorts zsh v4.2, see issue #125.
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
autojump ${@}
|
|
|
|
autojump ${@}
|
|
|
@ -50,7 +50,7 @@ function j {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function jc {
|
|
|
|
jc() {
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
j ${@}
|
|
|
|
j ${@}
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -58,7 +58,7 @@ function jc {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function jo {
|
|
|
|
jo() {
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
j ${@}
|
|
|
|
j ${@}
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -86,7 +86,7 @@ function jo {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function jco {
|
|
|
|
jco() {
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
if [[ ${@} == -* ]]; then
|
|
|
|
j ${@}
|
|
|
|
j ${@}
|
|
|
|
else
|
|
|
|
else
|
|
|
|