From faa265de5b814515b9f0f9c485c81ed0b8d6fbe8 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Thu, 21 Jan 2021 20:40:09 -0800 Subject: [PATCH] Adding OSX support --- .zshrc | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) 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 -- 2.34.1