savvas.pyth
savvas.pyth

Reputation: 23

OSX/ how to exit bash in terminal

I was trying to setup home-brew and git(installed) via terminal . After i failed to install home-brew i tried to fix the errors that appeared and terminal entered bash and doesn't accept my commands . I tried quitting the terminal app or exit,logout, restart system etc.

Savvass-MacBook-Pro-2:~ Solen$ clear
-bash: clear: command not found
Savvass-MacBook-Pro-2:~ Solen$ 

Upvotes: 2

Views: 5386

Answers (1)

Thomas Ayoub
Thomas Ayoub

Reputation: 29431

SO your path seems to be wrong. You have to fix it :

PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

Then export it :

export PATH;

And that should be enough

Upvotes: 2

Related Questions