I tried using this code
\newenvironment{bashcommands}{\ttfamily\color[RGB]{22,22,22}\begin{Verbatim}}{\end{Verbatim}}
But ended up spitting out an error. The error however was not related to this command, but related to another command that I put earlier. I have verified that command to be correct on this site.
This is the error I get in case anyone wants to look at it.
Runaway argument?
! File ended while scanning use of \FancyVerbGetLine.
<inserted text>
\par
l.136 \include{chapters/chapter2}
Any help with solving this would be greatly appreciated.
Thank you