Skip to content

Instantly share code, notes, and snippets.

@matthewfl
Created December 31, 2010 07:14
Show Gist options
  • Save matthewfl/760817 to your computer and use it in GitHub Desktop.
Save matthewfl/760817 to your computer and use it in GitHub Desktop.
An attempt to load application from the Applications folder into the command line
for a in /Applications/*; do
base=`echo $a | sed 's/\/Applications\/\(.*\)\.app/\1/'`
if [ $base != $a ]; then
name=`echo ${base:l} | sed 's/[^a-z0-9_]/\-/g'`
alias $name="open -a \"$base\" --args"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment