You are not logged in.

#1 2011-03-24 11:22:32

murfMan
Member
Registered: 2009-10-27
Posts: 161

[SOLVED] somehow i managed to mess up my path bash and zsh don't work

hello i was messing around with my path and now somehow i have managed to break everything


whenever i type ls i get
zsh: command not found: ls

i have to type
/bin/ls
to get it to work



the thing that puzzles me is that i was editing my ~/.zshrc when this happend but it appears that bash is having the same problem.  I didn't touch the bashrc. hmm

I tried taking out the PATH stuff in my ~/.zhrc and doing a . ~/.zshrc and still no work.


can anyone help me get back on the right track?




EDIT:   I managed to fix it myself.  I should probably stop and think before i am so quick to post to the fourms.

typing the following:

export PATH="/usr/bin/:$PATH"
export PATH="/bin/:$PATH"

got me back on track.

does anyone know if this will be permanent? or do i need to put this in a config file somewhere??

Last edited by murfMan (2011-03-24 11:27:49)

Offline

#2 2011-03-24 11:25:26

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: [SOLVED] somehow i managed to mess up my path bash and zsh don't work

If both bash and zsh have the same issue, check PATH in /etc/profile, and doublecheck your ~/.profile ~/.bashrc & ~/.zshrc

Offline

#3 2011-03-24 11:29:43

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] somehow i managed to mess up my path bash and zsh don't work

There is no path line in ~/.zshrc ... please see my edit above sorry.


do i need a path line in my config if i want this to stick after reboot ?

Offline

#4 2011-03-24 11:34:13

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: [SOLVED] somehow i managed to mess up my path bash and zsh don't work

Well, /bin, and /usr/bin are in the basic PATH defined in /etc/profile, or at least they should be.

Unless you've modified your PATH settings in any way, and excluded those two default locations, they should work on reboot.

Last edited by Xabre (2011-03-24 11:35:09)

Offline

Board footer

Powered by FluxBB