X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=bb11dd714444ca001058e8a02cdb05867ddc3d4a;hb=b8b992b2aba6d6e9eed0f0b2e025c08511139290;hp=a789428010b66f61180807fcf272c102f8a67df4;hpb=be84282735ce577b629d70b80e757f2a2ad5a32e;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index a789428..bb11dd7 100644 --- a/zsh/rc +++ b/zsh/rc @@ -45,8 +45,10 @@ resolve_fg_to_resumed_job_name() { # MISCELLANEOUS SETTINGS -# Be paranoid, new files are readable/writable by me only. -umask 077 +# Be paranoid, new files are readable/writable by me only, but not as root. +if [[ $UID -ne 0 ]]; then + umask 077 +fi # Disable beeps. setopt nobeep