summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2014-05-15 23:14:40 -0400
committerJune McEnroe <programble@gmail.com>2014-05-15 23:14:40 -0400
commit45470424f8c06293afea273025fc8a4d5ea2f66c (patch)
treea39b4e242085e566675308f895c24101e92ea972 /.zshrc
parentHeavily comment .vimrc (diff)
downloadsrc-45470424f8c06293afea273025fc8a4d5ea2f66c.tar.gz
src-45470424f8c06293afea273025fc8a4d5ea2f66c.zip
Add OS X specific shell configurations
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc12
1 files changed, 11 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 53eea862..7df1921e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,3 +1,11 @@
+# Detect platform
+if [[ "$(uname)" == "Darwin" ]]; then
+  function osx { true }
+else
+  function osx { false }
+fi
+
+# Basic zsh config
 HISTFILE=~/.histfile
 HISTSIZE=5000
 SAVEHIST=5000
@@ -59,7 +67,9 @@ source ~/.zsh/aliases.zsh
 
 # Environment
 
-EDITOR=vim
+export EDITOR=vim
+osx && PATH=$PATH:~/bin
+osx && export CLICOLOR=1
 
 # Prompt