summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2020-02-04 14:05:59 +0100
committerPatrick Simianer <p@simianer.de>2020-02-04 14:05:59 +0100
commit3b85e6ad451f4ffa6d83ba4a6e9e33fd001fc615 (patch)
tree77004ab58ba1bbb10a814f8dfd89dda38c410af5 /zsh
parent87c0f2eadc724044e171af29482fb67d35cdfc35 (diff)
parent9dd6a1e94c648ef8d5cc767f746e641054cab6a3 (diff)
Merge branch 'master' of git.fru.gal:dotfiles
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