Skip to content

Commit

Permalink
Fixed macos ostype catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Conner.Will committed Dec 27, 2023
1 parent 7d6d690 commit e4b5791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .config/zsh/zsh/user/zsh.d/01_distro.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ if [[ "${OSTYPE}" == "linux-gnu" ]]; then
[[ -f /etc/os-release ]] && export DISTRO=$(cat /etc/os-release | grep --extended-regexp --regexp='^NAME=' | cut -d'=' -f2 | cut -d' ' -f1 | cut -d'"' -f2)
elif [[ "${OSTYPE}" == "linux-android" ]]; then
export DISTRO="Android"
elif [[ "${OSTYPE}" == "darwin"* ]]; then
export DISTRO="Darwin"
else
unset DISTRO
fi

0 comments on commit e4b5791

Please sign in to comment.