X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=8455094b3fbd3d722d6929a179a51484643b0ee7;hb=409ee3ca56144701dcea536167808c6866598d4a;hp=a68687f6b4543f8be041805de07e0db1ef61ea11;hpb=941cec7ef671341fb201814008ec945e5c780d2d;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a68687f..8455094 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -261,7 +261,11 @@ zrcautoload is-at-least || is-at-least() { return 1 } #o# r_umaskstr rwxrwxr-x #o# umask 022 #o# umaskstr rwxr-xr-x -(( EUID != 0 )) && umask 002 || umask 022 +if (( EUID == 0 )); then + umask 002 +else + umask 022 +fi setopt append_history # append history list to the history file (important for multiple parallel zsh sessions!) is4 && setopt SHARE_HISTORY # import new commands from the history file also in other zsh-session