topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 1:53 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Farr could read Environment variables PATH?  (Read 4200 times)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Farr could read Environment variables PATH?
« on: May 16, 2009, 12:11 AM »
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

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Farr could read Environment variables PATH?
« Reply #1 on: May 16, 2009, 06:57 AM »
could you elaborate a little more about what you want FARR to do?

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: Farr could read Environment variables PATH?
« Reply #2 on: May 16, 2009, 10:51 AM »
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

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Farr could read Environment variables PATH?
« Reply #3 on: May 16, 2009, 11:03 AM »
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.
« Last Edit: May 16, 2009, 11:07 AM by mouser »

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: Farr could read Environment variables PATH?
« Reply #4 on: May 16, 2009, 11:17 AM »
Cool, it looks like exactly what I am looking for then.