all repos — nixfiles @ a55266068541cbcab22c47d9f83f591db30fa351

System and user configuration, managed by nix and home-manager

zsh: remove unused OS compatibility
Alan Pearce alan@alanpearce.eu
Wed, 19 Dec 2018 22:23:50 +0100
commit

a55266068541cbcab22c47d9f83f591db30fa351

parent

fc6009c6bd91ddff1b1fbf5faefce0db2c775f28

1 files changed, 0 insertions(+), 19 deletions(-)

jump to
M zsh/.config/zsh/.zshenvzsh/.config/zsh/.zshenv
@@ -31,25 +31,6 @@ os=unknown       ;;
   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