mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
added a file to automatically set up git for macs
This commit is contained in:
parent
7a820de14a
commit
28abafcf9d
1 changed files with 19 additions and 0 deletions
19
zsh/git
Executable file
19
zsh/git
Executable file
|
@ -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
|
Loading…
Add table
Reference in a new issue