Skip to content

Fix syntax highlighting for bash/zsh #3262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 12, 2025
Merged

Conversation

AdamGaskins
Copy link
Contributor

@AdamGaskins AdamGaskins commented Apr 7, 2025

Fixes #3231, fixes #3145.

Any files named (or with the extensions):

  • bashrc
  • bash_profile
  • bash_login
  • bash_logout
  • zshrc
  • zprofile
  • zlogin
  • zlogout
  • zshenv

Will now be correctly highlighted.

Based off of the recommendation of this comment, but let me know if there's a better way to go about this.

@AdamGaskins AdamGaskins marked this pull request as ready for review April 7, 2025 21:37
Copy link
Collaborator

@keith-hall keith-hall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks. I have the idea that the changelog entry could be a bit misleading though - we haven't changed any syntax highlighting grammars, just applied some mappings to ensure the correct grammar is used by default. What do you think of my reworded suggestion?

@AdamGaskins
Copy link
Contributor Author

Sounds great!

@keith-hall keith-hall merged commit debb66f into sharkdp:master Apr 12, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants