Created
July 29, 2012 21:16
-
-
Save timmillwood/3201871 to your computer and use it in GitHub Desktop.
function for opening files and folders in geany
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
function geany { | |
if [ -d $1 ]; then | |
cd $1; | |
for FILE in `dir -d *`; do | |
(/usr/bin/geany $FILE &); | |
done | |
else | |
for ARG in "$@" | |
do | |
(/usr/bin/geany $ARG &); | |
done | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment