From 8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 21 May 2017 11:08:17 +0200 Subject: 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. --- zsh/.config/zsh/.zshenv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zsh/.config') diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv index 114e5ce9..d1ea38e4 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 -- cgit 1.4.1