From 28abafcf9db66f3c9932be4de201595d04dd89eb Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 23 Dec 2008 21:38:35 -0500 Subject: [PATCH] added a file to automatically set up git for macs --- zsh/git | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 zsh/git diff --git a/zsh/git b/zsh/git new file mode 100755 index 0000000..0369202 --- /dev/null +++ b/zsh/git @@ -0,0 +1,19 @@ +if [[ -d /usr/local/git/man ]] ; then + if [[ -z "${MANPATH}" ]] ; then + export MANPATH="/usr/local/git/man":$(manpath) + else + export MANPATH="/usr/local/git/man:${MANPATH}" + fi +fi + +if [[ -d /usr/local/git/bin ]] ; then + if [[ -z "${PATH}" ]] ; then + export PATH="/usr/local/git/bin" + else + export PATH="/usr/local/git/bin:${PATH}" + fi +fi + +if [[ -d /usr/local/git/libexec/git-core ]] ; then + export PATH="/usr/local/git/libexec/git-core:${PATH}" +fi