all repos — nixfiles @ 8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15

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

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.

Alan Pearce
commit

8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15

parent

5216f41ddf542f3cebb530730b56bfb4acb9e7a8

1 file changed, 2 insertions(+), 1 deletion(-)

jump to
M zsh/.config/zsh/.zshenvzsh/.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