summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2017-05-21 11:08:17 +0200
committerAlan Pearce2017-05-21 11:08:17 +0200
commit8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15 (patch)
treed744fbfccb6d2244314f0f8c4aa97ae4c983d152 /zsh
parent5216f41ddf542f3cebb530730b56bfb4acb9e7a8 (diff)
downloaddotfiles-8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15.tar.lz
dotfiles-8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15.tar.zst
dotfiles-8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15.zip
zsh: Set umask manually on Windows/WSL
Previously, I ran the WSL environment as root, calling `login` to ensure all
the right login stuff happens (mostly the setting of umask).  Unfortunately,
this complicated running commands from outside the environment and was a bit
slower.
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshenv3
1 files changed, 2 insertions, 1 deletions
diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv
index 114e5ce..d1ea38e 100644
--- a/zsh/.config/zsh/.zshenv
+++ b/zsh/.config/zsh/.zshenv
@@ -42,7 +42,8 @@ then
     read osrelease < /proc/sys/kernel/osrelease
     if [[ $osrelease =~ Microsoft$ ]]
     then
-      windows=1
+      export windows=1
+      umask 002
     fi
   fi