1
0
mirror of https://github.com/wting/autojump synced 2025-06-07 01:44:23 +00:00
This commit is contained in:
Evan Klitzke 2025-03-26 05:18:44 +00:00 committed by GitHub
commit 855b79f74e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -59,6 +59,7 @@ j() {
return
fi
local output
output="$(autojump ${@})"
if [[ -d "${output}" ]]; then
if [ -t 1 ]; then # if stdout is a terminal, use colors
@ -94,6 +95,7 @@ jo() {
return
fi
local output
output="$(autojump ${@})"
if [[ -d "${output}" ]]; then
case ${OSTYPE} in

View File

@ -14,7 +14,7 @@ fi
# prevent circular loop for sh shells
if [ "${shell}" = "sh" ]; then
return 0
:
# check local install
elif [ -s ~/.autojump/share/autojump/autojump.${shell} ]; then
@ -24,3 +24,5 @@ elif [ -s ~/.autojump/share/autojump/autojump.${shell} ]; then
elif [ -s /usr/local/share/autojump/autojump.${shell} ]; then
source /usr/local/share/autojump/autojump.${shell}
fi
unset shell