|
@@ -21,7 +21,7 @@ function open_command() {
|
|
case "$OSTYPE" in
|
|
case "$OSTYPE" in
|
|
darwin*) open_cmd='open' ;;
|
|
darwin*) open_cmd='open' ;;
|
|
cygwin*) open_cmd='cygstart' ;;
|
|
cygwin*) open_cmd='cygstart' ;;
|
|
- linux*) ! [[ $(uname -a) =~ "Microsoft" ]] && open_cmd='xdg-open' || {
|
|
|
|
|
|
+ linux*) [[ "$(uname -r)" != *icrosoft* ]] && open_cmd='nohup xdg-open' || {
|
|
open_cmd='cmd.exe /c start ""'
|
|
open_cmd='cmd.exe /c start ""'
|
|
[[ -e "$1" ]] && { 1="$(wslpath -w "${1:a}")" || return 1 }
|
|
[[ -e "$1" ]] && { 1="$(wslpath -w "${1:a}")" || return 1 }
|
|
} ;;
|
|
} ;;
|
|
@@ -31,12 +31,7 @@ function open_command() {
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
|
|
|
|
- # don't use nohup on OSX
|
|
|
|
- if [[ "$OSTYPE" == darwin* ]]; then
|
|
|
|
- ${=open_cmd} "$@" &>/dev/null
|
|
|
|
- else
|
|
|
|
- nohup ${=open_cmd} "$@" &>/dev/null
|
|
|
|
- fi
|
|
|
|
|
|
+ ${=open_cmd} "$@" &>/dev/null
|
|
}
|
|
}
|
|
|
|
|
|
#
|
|
#
|