aboutsummaryrefslogtreecommitdiffstats
path: root/main/zsh/zprofile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-28 13:28:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-28 13:34:10 +0000
commitdf455ba2f5cd552ecee941ed11d8b468753f43a0 (patch)
tree11a81d573d2739b7e8be7731f162d2ba19ad6b7d /main/zsh/zprofile
parente5988c7ba4800eae283cfe84642e62b613d23a24 (diff)
downloadaports-df455ba2f5cd552ecee941ed11d8b468753f43a0.tar.gz
aports-df455ba2f5cd552ecee941ed11d8b468753f43a0.tar.bz2
aports-df455ba2f5cd552ecee941ed11d8b468753f43a0.tar.xz
main/zsh: ship a separate zprofile for zsh
fixes #2289
Diffstat (limited to 'main/zsh/zprofile')
-rw-r--r--main/zsh/zprofile22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/zsh/zprofile b/main/zsh/zprofile
new file mode 100644
index 0000000000..03d316f1ad
--- /dev/null
+++ b/main/zsh/zprofile
@@ -0,0 +1,22 @@
+#
+# /etc/zprofile and ~/.zprofile are run for login shells
+#
+
+PATH="$PATH:$HOME/bin"
+export PATH
+
+_src_etc_profile()
+{
+ # Make /etc/profile happier, and have possible ~/.zshenv options like
+ # NOMATCH ignored.
+ #
+ emulate -L ksh
+
+ # source profile
+ if [ -f /etc/profile ]; then
+ source /etc/profile
+ fi
+}
+_src_etc_profile
+
+unset -f _src_etc_profile