Skip to content

Instantly share code, notes, and snippets.

@timmillwood
Created July 29, 2012 21:16
Show Gist options
  • Save timmillwood/3201871 to your computer and use it in GitHub Desktop.
Save timmillwood/3201871 to your computer and use it in GitHub Desktop.
function for opening files and folders in geany
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