From 27e71d7b43035a7f5677617742f92e44d5226b9d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 4 Feb 2020 08:00:05 +0100 Subject: zsh: root's umask --- zsh/.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3