summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2020-02-04 08:00:05 +0100
committerPatrick Simianer <pks@pks.rocks>2020-02-04 08:00:05 +0100
commit27e71d7b43035a7f5677617742f92e44d5226b9d (patch)
treeb186e4c0fde19f7fe354c8f662b6aad87741f7c9 /zsh
parent2c2aadc4c8210acace728e711f5e411748a47161 (diff)
zsh: root's umask
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index dead0ac..7870b2a 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -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