]> git.quilime.com - cfg.git/commitdiff
Adding OSX support
authorGabriel Dunne <gdunne@quilime.com>
Fri, 22 Jan 2021 04:40:09 +0000 (20:40 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Fri, 22 Jan 2021 04:40:09 +0000 (20:40 -0800)
.zshrc

diff --git a/.zshrc b/.zshrc
index 25805e80f84c13a7d30fb8e0d4836c554e06e6b1..78e17ee9a776bcda475e8d60c0f131d41404a34c 100644 (file)
--- 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