From: Gabriel Dunne Date: Fri, 22 Jan 2021 04:40:09 +0000 (-0800) Subject: Adding OSX support X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=faa265de5b814515b9f0f9c485c81ed0b8d6fbe8;p=cfg.git Adding OSX support --- diff --git a/.zshrc b/.zshrc index 25805e8..78e17ee 100644 --- a/.zshrc +++ b/.zshrc @@ -1,8 +1,15 @@ -# Source zsh configuration -if [[ -e ~/.zsh-config ]]; then - source ~/.zsh-config -fi -# Use zsh prompt -if [[ -e ~/.zsh-prompt ]]; then - source ~/.zsh-prompt +if [[ "$OSTYPE" == "darwin"* ]]; then + if [[ -e ~/.zsh-darwin ]]; then + source ~/.zsh-darwin + fi +else + # Linux or other + # Source zsh configuration + if [[ -e ~/.zsh-config ]]; then + source ~/.zsh-config + fi + # Use zsh prompt + if [[ -e ~/.zsh-prompt ]]; then + source ~/.zsh-prompt + fi fi