summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/zsh/files/zshenv')
-rw-r--r--app-shells/zsh/files/zshenv15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-shells/zsh/files/zshenv b/app-shells/zsh/files/zshenv
new file mode 100644
index 000000000000..4d350d569f5a
--- /dev/null
+++ b/app-shells/zsh/files/zshenv
@@ -0,0 +1,15 @@
+[[ -o rcs ]] || return 0
+
+[[ -e "/etc/profile.env" ]] && source /etc/profile.env
+
+#077 would be more secure, but 022 is generally quite realistic
+umask 022
+
+if [[ $(/usr/bin/whoami) == 'root' ]]
+then
+ export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
+else
+ export PATH="/bin:/usr/bin:${PATH}"
+fi
+unset ROOTPATH
+