summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
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 03d1eda..013bb68 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