Skip to content

Instantly share code, notes, and snippets.

@evan
Created December 9, 2010 21:03
Show Gist options
  • Save evan/735332 to your computer and use it in GitHub Desktop.
Save evan/735332 to your computer and use it in GitHub Desktop.
Bash script to replace BBEdit's broken commandline functionality
#!/bin/bash
for var in "$@"
do
if [ -f "$var" ]
then
open -a BBEdit.app "$var"
else
touch "$var"
open -a BBEdit.app "$var"
sleep 1
rm "$var"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment