I've managed to wreck my Terminal of my Air's OS X (10.9.5) while running a sudo command (sudo mv git /etc/paths.d) during git installation.
Now I receive a continuous string of errors on every new Terminal window that I start, the first 3 lines of which are:
-bash: ???H??: command not found -bash: command substitution: line 4: syntax error near unexpected token `(' -bash: command substitution: line 4: `:??H?u?H??HH?BH?E??H?? ]?ffff.?:?U??E???
"Unexpected exception: Unmatched marking paranthesis ( or (. The error occurred while passing the regular expression fragment: ' "
This error stays even on reinstallation of RStudio (while R works correctly)
I've tried resetting the Terminal by deleting ~/Library/Preferences/com.apple.Terminal.plist but the error still persists.
Really appreciate your help!
echo $PATH is also gives a string of errors, starting with