Hi there.
I'm trying to create a set shell script templates under the 'New From Templates...' menu command.
I've created a template entry in the Shell Script bundle, using the default commands setup, with the extension set to .sh and the scope set to source.shell (i've tried it with and without this, and reloaded bundles between attempts.) I've added a template file (script.sh) to the template, with just the following contents:
#!/bin/bash
# ${TM_NEW_FILE_BASENAME} # Created by ${TM_USERNAME} on ${TM_DATE}. # Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
which is pretty much a default entry I guess.
The Shell Script option now appears as a submenu in the 'New From Templates...' menu item, but when I select it, I get nothing :-(
Okay, this one has me beat - what am I doing wrong?
R
On 20. Jun 2007, at 16:26, Richard Dyce wrote:
[...] The Shell Script option now appears as a submenu in the 'New From Templates...' menu item, but when I select it, I get nothing :-(
What about Test in the bundle editor, does that work?
How does your actual script (to create the file) look?
Ah ha! The test button. Yet another smacked forehead for me I guess.
Thanks Allan - it was the classic 'space before the assignment' bash error....
;-)
On 20 Jun 2007, at 22:33, Allan Odgaard wrote:
On 20. Jun 2007, at 16:26, Richard Dyce wrote:
[...] The Shell Script option now appears as a submenu in the 'New From Templates...' menu item, but when I select it, I get nothing :-(
What about Test in the bundle editor, does that work?
How does your actual script (to create the file) look?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate