textmate / shellscript.tmbundle

TextMate support for ShellScript
43 stars 29 forks source link

Add bash_aliases to fileTypes #30

Closed gontadu closed 8 years ago

gontadu commented 8 years ago

Same as https://github.com/Microsoft/vscode/pull/10333

mkhl commented 8 years ago

Thank you for your pull request. I don’t think this change fits into the bundle.

If you open your .bash_aliases and switch to the Shell Script grammar, that setting should persist.

If you want this as part of your dotfiles, say, you can declare the type of your favourite bash alias files in your .tm_properties like this:

[ .bash_aliases ]
fileType = source.shell
gontadu commented 8 years ago

Thanks @mkhl - just curious as to WHY this change does not fit the bundle when other files such as .bash_profile do?

mkhl commented 8 years ago

.bashrc, .bash_login, .bash_profile and .profile are all files that the shell loads by default, while .bash_aliases (for example) is personal preference.

See also the “INVOCATION” section of the man page.