[Tex/LaTex] is there support for Linux/Unix in minted

minted

I'm trying to type up some notes that include some commands on a Linux course I'm taking so I thought of loadign minted in the preamble of my tex document. To my great surprise it seems there isn't any support for linux/unix language. I carefully scrolled through the output of

$ pygmentize -L lexers

but no linux is there. Any way to get around this problem? I'm on a Win7 OS with Texlive 2015, AUCTeX editor.

This gives error:

\begin{minted}{latex}
  sysadmin@localhost:~$ cat /etc/updatedb.conf
\end{minted}

Best Answer

This answer is just another repeat of the comments above.

The minted package does highlight shell languages.

It does not show a lot on your input, though, as you are not using any shell constructs, but a POSIX program.

As always, compile with pdflatex -shell-escape <myFile>.tex.

The output

enter image description here

The code

\documentclass[12pt]{article}
\usepackage{minted}
\begin{document}
\pagestyle{empty}
\paragraph{Your prompt command, not much highlighted}
\begin{minted}{shell-session}
sysadmin@localhost:~$ cat /etc/updatedb.conf
\end{minted}
\paragraph{An actual shell script}
\begin{minted}{shell}
for k in {1..5}
do 
    echo $k
done
\end{minted}
\end{document}
Related Question