Fork me on GitHub
#emacs
<
2019-06-16
>
Daouda15:06:57

hey Folks, I am facing an issue. Can get ag to work, getting this error: zsh:1: command not found: ag. I am new on emacs. Help please!

theeternalpulse16:06:09

what's the value of your process-environment (use C-h v process-environment?

theeternalpulse16:06:29

so if in your shell you do which ag and hte value isn't in there, then you need to do a setenv with the path that has ag I think

theeternalpulse16:06:39

I use ripgrep but it's in /usr/bin

Daouda16:06:10

I installed it only from emacs

Daouda16:06:28

is it because of that?

Daouda16:06:55

cause i can’t get it from my shell

which ag
ag not found

theeternalpulse16:06:38

hmm, if you don't have it on your host you can't use it.

Daouda16:06:51

hahahaha, I’ve installed from brew and it’s working now. Tak you very much @U1CUUKHDL 😄

👍 4
theeternalpulse16:06:08

Yeah, for things like that emacs doesn't do search best, it delegates to a process on the host machine

theeternalpulse16:06:38

I'd keep note of that so that if you migrate to another computer you don't forget it.

👍 4