I was screwing around with my .bash_profile, and did something wrong - a fair amount of commands don't work for me anymore.
-bash: jekyll: command not found
I've tried a bunch of the stuff on stackoverflow and other sites already, but can't seem to get it working.
Most commands are still working (cd, mv, ls, vim, git, even s3cmd), but others (rails, jekyll) are not working for some reason.
How I get here was I started out trying to get the command 'subl' to work, so pasted in this to command line (via this tutorial)
$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
It didn't work for me (later I'm realized it's because the app is Sublime Text, and not Sublime Text 2), but eventually found my way to a different page, that told me to open my bash_profile and paste this in.
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
Upon opening my bash_profile (vim .bash_profile), it prompted with some sort of error (I think conflicting file), so I Recovered it. After that, pasted the above in, saved and exit.
On reloading (opened a new tab), was running into a bunch of errors and my commands were no longer working. Hours later, having tried many things, this is my current status
$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/ChrisYin/usr/bin:/Users/ChrisYin/usr/bin:/Users/ChrisYin/usr/bin:/Users/ChrisYin/usr/bin
$ open .bash_profile
export ARCHFLAGS="-arch x86_64"
export PATH=$PATH:~/usr/bin
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Eventually what I did try was deleting my .bash_profile, and reinstalled rails. I got rails and jekyll working again, but then I opened up a new tab, and none of them were working again.
Any help appreciated, thanks.