projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941cec7
)
zshrc: Fix umask logic
author
Frank Terbeck
<ft@grml.org>
Sun, 19 Jun 2011 08:33:44 +0000
(10:33 +0200)
committer
Frank Terbeck
<ft@grml.org>
Sun, 19 Jun 2011 08:33:44 +0000
(10:33 +0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
a68687f
..
8455094
100644
(file)
--- 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