Change default umask for non-root user
authorMikael Berthe <mikael@lilotux.net>
Thu, 22 Sep 2016 19:18:09 +0200
changeset 36 89707240553f
parent 35 c6d405e0684b
child 37 9c238177f98a
Change default umask for non-root user
zshrc.d/10-shell-options.zrc
--- a/zshrc.d/10-shell-options.zrc	Sun Feb 28 17:06:21 2016 +0100
+++ b/zshrc.d/10-shell-options.zrc	Thu Sep 22 19:18:09 2016 +0200
@@ -65,8 +65,4 @@
 ulimit -c 0
 
 # File/directory masks
-if [[ $UID -eq 0 ]]; then
-  umask 022
-else
-  umask 002
-fi
+umask 022