Hi folks:
I am new to textmate and to the list. I have spent awhile with the manual but either I missed this or it is not in there (or maybe it can't be done).
I keep all my zsh configuration files in /Library/init/zsh
These include various files that are sourced, as well as shell script/ function files. Since the latter have #!/bin/zsh at the top, textmate does the right thing, but I would also like the other files, that set up my environment, define aliases, and so forth, to use the same syntax highlighting, even though they do not have #!/bin/zsh at the top.
Is there a simple way to do this?
Thanks.
Bill
On 12/8/2006, at 18:40, William Scott wrote:
These include various files that are sourced, as well as shell script/function files. Since the latter have #!/bin/zsh at the top, textmate does the right thing, but I would also like the other files, that set up my environment, define aliases, and so forth, to use the same syntax highlighting, even though they do not have #!/ bin/zsh at the top.
Is there a simple way to do this?
TextMate only has syntax highlight for bash shell scripts, but I guess you’re fine using that for your zsh stuff!?!
If the files has no special extension or no first-line marker, the only way to record that they are shell scripts is by putting the entire filename in the fileTypes array.
You can find that if you select Edit Languages and locate the Shell Script language grammar. You will see it already has the names of most of the (bash specific) profiles.
TextMate only has syntax highlight for bash shell scripts, but I guess you’re fine using that for your zsh stuff!?!
Yeah, it is pretty similar. Besides, zsh and csh (but not tcsh!) are listed in the fileTypes array.
If the files has no special extension or no first-line marker, the only way to record that they are shell scripts is by putting the entire filename in the fileTypes array.
I wound up doing that. I was just wondering if there was anything I missed, being new to TextMate.
You can find that if you select Edit Languages and locate the Shell Script language grammar. You will see it already has the names of most of the (bash specific) profiles.
Thanks. It works. I put in all the standard zsh/bash/(t)csh rc and env files.
Bill