Created
December 31, 2010 07:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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