summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-12-19 22:23:50 +0100
committerAlan Pearce2018-12-19 22:23:50 +0100
commita55266068541cbcab22c47d9f83f591db30fa351 (patch)
tree89999c77bfd2b4bfc90244ce2cf962530a348722
parentfc6009c6bd91ddff1b1fbf5faefce0db2c775f28 (diff)
downloadnixfiles-a55266068541cbcab22c47d9f83f591db30fa351.tar.lz
nixfiles-a55266068541cbcab22c47d9f83f591db30fa351.tar.zst
nixfiles-a55266068541cbcab22c47d9f83f591db30fa351.zip
zsh: remove unused OS compatibility
-rw-r--r--zsh/.config/zsh/.zshenv19
1 files changed, 0 insertions, 19 deletions
diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv
index b346c753..6b58186e 100644
--- a/zsh/.config/zsh/.zshenv
+++ b/zsh/.config/zsh/.zshenv
@@ -31,25 +31,6 @@ then
       ;;
   esac
 
-  if [[ $os == "linux" ]]
-  then
-    read osrelease < /proc/sys/kernel/osrelease
-    if [[ $osrelease =~ Microsoft$ ]]
-    then
-      export windows=1
-      umask 002
-    fi
-  fi
-
-  if [[ $os != "darwin" ]]
-  then
-    unset SSH_AGENT_PID
-    if [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ && -n $commands[gpgconf] ]]
-    then
-      export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
-    fi
-  fi
-
   case $MACHTYPE in
     *64)
       arch=amd64