diff options
author | Alan Pearce | 2017-05-21 11:08:17 +0200 |
---|---|---|
committer | Alan Pearce | 2017-05-21 11:08:17 +0200 |
commit | 8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15 (patch) | |
tree | d744fbfccb6d2244314f0f8c4aa97ae4c983d152 | |
parent | 5216f41ddf542f3cebb530730b56bfb4acb9e7a8 (diff) | |
download | nixfiles-8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15.tar.lz nixfiles-8cb99ca85533e3252289e0ccb5ebe1dc8c98fa15.tar.zst nixfiles-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.
-rw-r--r-- | zsh/.config/zsh/.zshenv | 3 |
1 files changed, 2 insertions, 1 deletions
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 |