summary refs log tree commit diff stats
path: root/tag-zsh/config/zsh/zshenv
diff options
context:
space:
mode:
Diffstat (limited to 'tag-zsh/config/zsh/zshenv')
-rw-r--r--tag-zsh/config/zsh/zshenv24
1 files changed, 24 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshenv b/tag-zsh/config/zsh/zshenv
index 86efc02d..e62dca5c 100644
--- a/tag-zsh/config/zsh/zshenv
+++ b/tag-zsh/config/zsh/zshenv
@@ -16,4 +16,28 @@ then
   then
     export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
   fi
+
+  case $OSTYPE in
+    darwin*)
+      os=darwin
+      ;;
+    linux-gnu)
+      os=linux
+      ;;
+    freebsd*)
+      os=freebsd
+      ;;
+    *)
+      os=unknown
+      ;;
+  esac
+
+  case $MACHTYPE in
+    *64)
+      arch=amd64
+      ;;
+    *)
+      arch=386
+      ;;
+  esac
 fi