5

I have to launch almost any application by specifying the whole path which is annoying.

For example, git works fine, but lua does not. Both are installed in the same place:

$ which git
/usr/local/bin/git
$ which lua
/usr/local/bin/lua

How to make M-x shell behave like my standard shell? Or maybe there's a decent shell emulator as a package?

echo $SHELL outputs /bin/bash.

  • 1
    What are your shell and path variables? (Do echo $SHELL and echo $PATH in an emacs shell). – dshepherd Jun 2 '15 at 7:29
  • What about term or eshell ? – Scony Jun 2 '15 at 7:33
  • @dshepherd please see an update :) – lukas.pukenis Jun 2 '15 at 7:37
  • @Scony all of them do the same :/ – lukas.pukenis Jun 2 '15 at 7:38
  • 3
    Well, as @dshepherd mentioned, you are missing /usr/local/bin in PATH. git is working probably only because there is symlink in /bin. Try export PATH=$PATH:/usr/local/bin in emacs terminal. You can also check this out: stackoverflow.com/questions/8606954/… – Scony Jun 2 '15 at 7:41
9

Well, as @dshepherd mentioned, you are missing /usr/local/bin in PATH. git is working probably only because there is symlink in /bin. Try export PATH=$PATH:/usr/local/bin in emacs terminal.

You can also check this out: https://stackoverflow.com/questions/8606954/path-and-exec-path-set-but-emacs-does-not-find-executable

In the future, in case of similar issue, checking PATH (echo $PATH) should be first thing you should do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.