aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/checks.zsh
diff options
context:
space:
mode:
Diffstat (limited to '_zsh/checks.zsh')
-rw-r--r--_zsh/checks.zsh17
1 files changed, 17 insertions, 0 deletions
diff --git a/_zsh/checks.zsh b/_zsh/checks.zsh
new file mode 100644
index 0000000..6868e2c
--- /dev/null
+++ b/_zsh/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: #