diff --git a/bin/autojump b/bin/autojump index 565ef8b..6dcda1f 100755 --- a/bin/autojump +++ b/bin/autojump @@ -60,7 +60,7 @@ from autojump_utils import sanitize from autojump_utils import take from autojump_utils import unico -VERSION = '22.2.0-beta' +VERSION = '22.2.1-beta' FUZZY_MATCH_THRESHOLD = 0.6 TAB_ENTRIES_COUNT = 9 TAB_SEPARATOR = '__' diff --git a/bin/autojump.bash b/bin/autojump.bash index c1774b6..0c49d75 100644 --- a/bin/autojump.bash +++ b/bin/autojump.bash @@ -93,7 +93,7 @@ jo() { output="$(autojump ${@})" if [[ -d "${output}" ]]; then case ${OSTYPE} in - linux|linux-gnu) + linux*) xdg-open "${output}" ;; darwin*) @@ -103,7 +103,7 @@ jo() { cygstart "" $(cygpath -w -a ${output}) ;; *) - echo "Unknown operating system '${OSTYPE}'." 1>&2 + echo "Unknown operating system: ${OSTYPE}." 1>&2 ;; esac else diff --git a/bin/autojump.fish b/bin/autojump.fish index f0dc153..e4b6026 100644 --- a/bin/autojump.fish +++ b/bin/autojump.fish @@ -74,14 +74,14 @@ function jo __aj_err "Try `autojump --help` for more information." else switch (sh -c 'echo ${OSTYPE}') - case linux-gnu + case 'linux*' xdg-open (autojump $argv) case 'darwin*' open (autojump $argv) case cygwin cygstart "" (cygpath -w -a (pwd)) case '*' - __aj_error "Unknown operating system." + __aj_error "Unknown operating system: '"$OSTYPE"'" end echo end end diff --git a/bin/autojump.zsh b/bin/autojump.zsh index 4528f9c..fbc0960 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -85,7 +85,7 @@ jo() { local output="$(autojump ${@})" if [[ -d "${output}" ]]; then case ${OSTYPE} in - linux-gnu) + linux*) xdg-open "${output}" ;; darwin*) @@ -95,7 +95,7 @@ jo() { cygstart "" $(cygpath -w -a ${output}) ;; *) - echo "Unknown operating system." 1>&2 + echo "Unknown operating system: ${OSTYPE}" 1>&2 ;; esac else