I wrote a little shell script called 'edit' which seeks to invoke
'bbedit' in a "smart" way, addressing a couple of different situations
that I run into:

1. I run 'bbedit' when I am ssh'd into a remote computer, and then
wonder why the file didn't open (it will let you continue if you want,
or let you open it in your specified $EDITOR otherwise

2. I run 'bbedit' on a file owned by root or otherwise "not writeable"

3. Several times a day I want to edit a script which isn't in $PWD but
is in $PATH, so if 'edit' doesn't find the file you want to open in
$PWD it checks to see if it's in $PATH and IFF it isn't, then it
creates a new file in $PWD

You can download the script here:

http://dl.dropbox.com/u/18414/bin/edit

Note that the script references a ~/.source file, which is just a
basic file that I use with all of my scripts. It sets a few variables
including $PATH but is otherwise unimportant to everyone except me :-)

I'd be most grateful for any feedback that people might give, and hope
that this is helpful.

TjL

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to