rejeep / prodigy.el

Manage external services from within Emacs
GNU General Public License v3.0
552 stars 39 forks source link

:command "./somename" loads command from exec path instead of pwd #68

Closed thomasf closed 9 years ago

thomasf commented 9 years ago

It's not a big problem since a lambda and file-truename can take care of it but it's still unexpected.

rejeep commented 9 years ago

Instead of:

(prodigy-define-service
  :name "Foo"
  :command "./bin/foo"
  :cwd "/path/to/foo")

Try this:

(prodigy-define-service
  :name "Foo"
  :command "foo"
  :path "/path/to/foo/bin"
  :foo "/path/to/foo")

Even better (if you keep you binaries in ./bin) is to create a tag:

(prodigy-define-tag
  :name 'bin
  :hide t
  :path (lambda ()
          (f-expand "bin" default-directory)))

And use it like this:

(prodigy-define-service
  :name "Foo"
  :command "foo"
  :cwd "/path/to/foo"
  :tags '(bin))
thomasf commented 9 years ago

Ah, I did miss the path variable, thanks.