Not sure whether your distri did patch that file or some local configuration is conflicting... .bashrc should already be recognized as Sh -- https://github.com/geany/geany/blob/master/data/filetype_extensions.conf#L67 -- and this is working at least here. Would you mind double checking?