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.
1 file changed, 2 insertions(+), 1 deletion(-)
jump to
M zsh/.config/zsh/.zshenv → 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