aboutsummaryrefslogtreecommitdiff
path: root/gitstatus/gitstatus.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'gitstatus/gitstatus.plugin.zsh')
-rw-r--r--gitstatus/gitstatus.plugin.zsh5
1 files changed, 2 insertions, 3 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index 8cfa008e..32eec42c 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -504,9 +504,8 @@ function gitstatus_start() {
local -aU os
case $kernel in
linux)
- os=("${(L)$(uname -o)}") || return
- [[ -n $os[1] ]] || return
- [[ $os[1] == android ]] || os[1]=linux
+ os=("${(L)$(uname -o 2>/dev/null)}") || os=()
+ [[ $os[1] == android ]] || os=(linux)
;;
cygwin_nt-*) os=($kernel cygwin_nt-10.0);;
mingw|msys) os=($kernel msys_nt-10.0);;