1

A Terminal newbie here.

I had downloaded and installed Git, but when I typed "Git --version" I would get illegal instruction. I tried to uninstall Git and now my Terminal window in blank.

How do I get Name$ as a prompt again?

Thank you!

enter image description here

Elia
  • 43
  • 1
  • 1
  • 4
  • How did You remove Git? Here's link for changing command prompt: http://stackoverflow.com/questions/14416274/how-to-suppress-or-customize-mac-terminal-shell-prompt – Mateusz Szlosek Sep 22 '14 at 14:44
  • Share a screenshot ? You could reset the terminal if nothing works - http://apple.stackexchange.com/questions/91381/how-can-i-reset-my-terminal/91396#91396 – Jash Jacob Sep 22 '14 at 14:45
  • @JashJacob I deleted my com.apple.Terminal.plist but still no prompt in the Terminal window.Thanks for you help. – Elia Sep 22 '14 at 15:01
  • @MateuszSzlosek I ran the uninstall Git script and now my Terminal window is blank. I used to get the prompt "Elia$". Now I literally have a blank screen. What is a string of characters I can type in the Terminal window? I am totally new to Terminal and command lines. Thank you! – Elia Sep 22 '14 at 15:25
  • @Elia try this: echo "export PS1=\"\u\w$\"" >> ~/.bash_profile and restart Your Terminal app. – Mateusz Szlosek Sep 22 '14 at 15:58
  • @MateuszSzlosek Unfortunately, I still gat a blank screen. I am typing "echo "export PS1="\u\w$"" >> ~/.bash_profile" and hit return. Nothing is returned after I enter that command line. Thank you. – Elia Sep 22 '14 at 16:20
  • Can you type anything? Try pressing both control and c in the keyboard If yes, it must be the .bash_profile – Calvin Tanuri Apr 12 '21 at 05:42

0 Answers0