Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Run certain apps based on login location' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run certain apps based on login location
Authored by: Titanium Man on Mar 30, '05 12:18:31PM

Or you can use double brackets [[ ]] to test (rather than single brackets [ ]):

edit() {
if [[ ${TERM_PROGRAM} == 'Apple_Terminal' ]]; then
open -a 'SubEthaEdit.app' "$*" &
else
pico "$*"
fi
}



[ Reply to This | # ]