ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Farr could read Environment variables PATH?

(1/1)

kartal:
mouser,

how hard it would be read paths from EV so that we can run globally defined commands via Farr? For example I am using Gnu Grep(and it is defined in Env V)  now it would be very tight if I could run Grep via Farr without creating aliases and it would be in sync with Env V all the time when we have it that way.


Basically Env V would be one of the search paths for Farr.

mouser:
could you elaborate a little more about what you want FARR to do?

kartal:
I would like Farr to read Environment Variables and use certain paths like "PATH" for scanning executables or other files. For example Grep is in listed under Sytem Path so as you know when I can just type Grep, it would run from any directory. I just would like to be able to type "grep" and run it in Farr  because Farr would find it in the system path and would increase the score based on whatever I think Env Var should carry as far as scoring goes. So instead me adding all the paths in the En V one by one Farr would just scan it for me automatically and would list it under search folder section.

The nice thing about this is thatFarr would be in sync with Env V at all times if the user wants. Otherwise I would keep adding those paths myselfs anytime I add new env variable path to my system.

I hope it makes sense.


mouser:
this was added recently -- you should be able to use the %PATH% in a search directory entry.

that is, if you add a search directory and specify %PATH% as the directory (and any exceptions you want if you like), FARR will search *all* directories in the path when searching that.

note: you should be able to use ANY %environmentvar% here.

kartal:
Cool, it looks like exactly what I am looking for then.

Navigation

[0] Message Index

Go to full version