commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This function is used to set environmental variables from a list of alternatives depending on what's installed on the system. It returns the first program found in the list.
export BROWSER=$(find_alternatives chromium-browser google-chrome opera firefox firefox-bin iceweasel konqueror w3m lynx)
export EDITOR=$(find_alternatives vim nano pico emacs kate)
export PAGER=$(find_alternatives vimpager less most more pg)
There are 2 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.