aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/00-checks.zsh
diff options
context:
space:
mode:
Diffstat (limited to '_zsh/00-checks.zsh')
-rw-r--r--_zsh/00-checks.zsh17
1 files changed, 17 insertions, 0 deletions
diff --git a/_zsh/00-checks.zsh b/_zsh/00-checks.zsh
new file mode 100644
index 0000000..6868e2c
--- /dev/null
+++ b/_zsh/00-checks.zsh
@@ -0,0 +1,17 @@
+#
+# zsh/checks.zsh
+#
+# Credits: http://zanshin.net/2013/02/02/zsh-configuration-from-the-ground-up/
+#
+
+if [[ $(uname) = 'Linux' ]]; then
+ IS_LINUX=1
+elif [[ $(uname) = 'FreeBSD' ]]; then
+ IS_FREEBSD=1
+ IS_BSD=1
+elif [[ $(uname) = 'DragonFly' ]]; then
+ IS_DRAGONFLY=1
+ IS_BSD=1
+fi
+
+# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #