diff options
author | Patrick Simianer <pks@pks.rocks> | 2020-02-04 08:00:05 +0100 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2020-02-04 08:00:05 +0100 |
commit | 27e71d7b43035a7f5677617742f92e44d5226b9d (patch) | |
tree | b186e4c0fde19f7fe354c8f662b6aad87741f7c9 | |
parent | 2c2aadc4c8210acace728e711f5e411748a47161 (diff) |
zsh: root's umask
-rw-r--r-- | zsh/.zshrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -150,7 +150,11 @@ zstyle ':prompt:rtab' nameddirs yes # exports # ############################################################################# -umask 0077 +if [[ $(whoami) == "root" ]]; then + umask 0022 +else + umask 0077 +fi export PATH=~/.local/bin:~/.local/sbin:$PATH export PATH=/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH |