Terminal Crash on Macbook Air 2011, Mavericks
Your PATH variable got contaminated by some irregular file content: either your git file in /etc/paths.d/, /etc/profile or ~/.MacOSX/environment.plist or all three are corrupted.

Use shiftcmdG in Finder to jump to each of the folders and check the content of them.

/etc/paths.d/ should contain a file git with the content /usr/local/git/bin. If you have installed other apps like X11 there may be additional files in paths.d - all containing paths.

The file profile in /etc/ should contain at least

# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
    eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] &amp;&amp; . /etc/bashrc
fi


The file environment.plist should look like this:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
    &lt;key&gt;PATH&lt;/key&gt;
    &lt;string&gt;/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;


The PATH string may contain other paths as well. The file may contain other keys - depending on other installs you have made previously.



If you have found irregular content in one of the files simply replace it with the content shown above. You have to be an admin to modify the first two files because they are root:wheel realm. If you use TextEdit or another text editor to modify them, be sure to save them as plain text and without file extension (i.e. .txt). You can ignore a missing ~/.MacOSX/environment.plist because it isn't supported in your environment (system version) anymore, besides you use some hacks.