From 49e513237f22eeeeb8ec28b8060ab4b7efafcc7b Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 25 Dec 2008 17:12:45 -0500 Subject: [PATCH] add support for MacPorts --- zsh/ports | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 zsh/ports diff --git a/zsh/ports b/zsh/ports new file mode 100755 index 0000000..f73190b --- /dev/null +++ b/zsh/ports @@ -0,0 +1,23 @@ +if [[ -d /opt/local/man ]] ; then + if [[ -z "${MANPATH}" ]] ; then + export MANPATH="/opt/local/man":$(manpath) + else + export MANPATH="/opt/local/man:${MANPATH}" + fi +fi + +if [[ -d /opt/local/bin ]] ; then + if [[ -z "${PATH}" ]] ; then + export PATH="/opt/local/bin" + else + export PATH="/opt/local/bin:${PATH}" + fi +fi + +if [[ -d /opt/local/sbin ]] ; then + export PATH="/opt/local/sbin:${PATH}" +fi + +if [[ -d /opt/local/libexec ]] ; then + export PATH="/opt/local/libexec:${PATH}" +fi