Skip to content

Add Bash language alias "sh"#3509

Merged
RunDevelopment merged 6 commits intoPrismJS:masterfrom
benhatsor:patch-1
Aug 18, 2022
Merged

Add Bash language alias "sh"#3509
RunDevelopment merged 6 commits intoPrismJS:masterfrom
benhatsor:patch-1

Conversation

@benhatsor
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 27, 2022

JS File Size Changes (gzipped)

A total of 3 files have changed, with a combined diff of +15 B (+0.2%).

Details
file master pull size diff % diff
components/prism-bash.min.js 2.94 KB 2.95 KB +7 B +0.2%
plugins/autoloader/prism-autoloader.min.js 2.45 KB 2.45 KB +3 B +0.1%
plugins/show-language/prism-show-language.min.js 2.74 KB 2.74 KB +5 B +0.2%

Generated by 🚫 dangerJS against 6f4a25b

@benhatsor benhatsor changed the title Add lang alias "sh" for shell Add lang alias "sh" for bash Jul 27, 2022
@benhatsor benhatsor changed the title Add lang alias "sh" for bash Add Bash language alias "sh" Jul 27, 2022
@RunDevelopment
Copy link
Copy Markdown
Member

RunDevelopment commented Jul 27, 2022

Hello @barhatsor!

I think this is a good addition, but it has to be implemented differently. Add the "sh" alias to Bash's alias list here (alias: ["sh", "shell"]; maybe even add an alias title) and run npm ci && npm run build. The build command will update Autoloader (and everything else that needs updating) automatically.

@RunDevelopment RunDevelopment merged commit 6b824d4 into PrismJS:master Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants