# Fix bash \`path_suffixes \`and add \`cmd\-/\` line comment support \(\#2827\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e3a4d174de9570260a2fcbd6c419145425e05094)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e3a4d174de9570260a2fcbd6c419145425e05094

Requested commit: e3a4d174de9570260a2fcbd6c419145425e05094

Commit: e3a4d174de9570260a2fcbd6c419145425e05094

Tree: a44c42c89196177b9070a195235d2da44638608d

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Fix bash `path_suffixes `and add `cmd-/` line comment support (#2827)

<img width="1608" alt="SCR-20230806-cyrg"
src="https://github.com/zed-industries/zed/assets/19867440/2491c4bc-5797-4417-9633-08c136b4e8fe">

I noticed we weren't highlghting bash files if the shebang line didn't
exist. After checking, it looks like the `.` were accidentally added to
the `path_suffixes` list. This PR fixes that and adds in support for
`cmd-/` to trigger line comments.

<img width="1608" alt="SCR-20230806-czxh"
src="https://github.com/zed-industries/zed/assets/19867440/37dd0c8e-c4e7-49e2-9997-9dd8145f460e">


Release Notes:

- Fixed a bug where shell files weren't syntax highlighted if a shebang
didn't exist.
- Added support for `cmd-/` to add line comments to shell files.
```

## Parents

- [7777d973cdece0420fd1c3c15336b3a5e7b148a2](https://git.cafe/gitcafe/zed/commit/7777d973cdece0420fd1c3c15336b3a5e7b148a2?format=markdown)

- [ef5b982ea5901f9f5ef78854e1bcba93b77dd2b6](https://git.cafe/gitcafe/zed/commit/ef5b982ea5901f9f5ef78854e1bcba93b77dd2b6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e3a4d174de9570260a2fcbd6c419145425e05094?format=markdown)
