Skip to content

Added ShellSession language#1071

Merged
arfon merged 2 commits intogithub-linguist:masterfrom
jkutner:add_session_lang
Apr 21, 2014
Merged

Added ShellSession language#1071
arfon merged 2 commits intogithub-linguist:masterfrom
jkutner:add_session_lang

Conversation

@jkutner
Copy link
Copy Markdown
Contributor

@jkutner jkutner commented Apr 16, 2014

This uses the pygments.rb Bash Session lexer to colorize shell sessions:
https://github.com/tmm1/pygments.rb/blob/master/vendor/pygments-main/pygments/lexers/shell.py#L110

I chose the .sh-session extension because that is what pygments specifies.

I did not include an updated samples.json because when I ran bundle exec rake samples it changed a lot more than just my stuff.

@pchaigno
Copy link
Copy Markdown
Contributor

ShellSession: should be after Shell: in the languages.yml file ;)

@jkutner
Copy link
Copy Markdown
Contributor Author

jkutner commented Apr 16, 2014

doh!

@bkeepers bkeepers added Triage and removed Triage labels Apr 21, 2014
@arfon
Copy link
Copy Markdown
Contributor

arfon commented Apr 21, 2014

Looks good @jkutner. Thanks for the pointer @pchaigno

arfon added a commit that referenced this pull request Apr 21, 2014
@arfon arfon merged commit 6d346fd into github-linguist:master Apr 21, 2014
zypA13510 added a commit to zypA13510/yargs-parser that referenced this pull request Mar 2, 2021
Change the snippet language code to use for shell command and their output, according to github-linguist/linguist#1071.
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants