You are not logged in.
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.
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
If both bash and zsh have the same issue, check PATH in /etc/profile, and doublecheck your ~/.profile ~/.bashrc & ~/.zshrc
Offline
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
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