Fixed code examples in OS assignment 3.

parent a3543b9d
...@@ -193,8 +193,8 @@ aan bod in dit practicum en wordt daarom niet verder behandeld. ...@@ -193,8 +193,8 @@ aan bod in dit practicum en wordt daarom niet verder behandeld.
\subsection{Experimenten met logfiles} \subsection{Experimenten met logfiles}
\begin{lstlisting}[language=bash] \begin{lstlisting}[language=bash,numbers=none]
for i in {1..6}; do fish < input$i.txt; ./view-logs.bash; done for i in {1..6}; do ./fish < input$i.txt; ./view-logs.bash; done
\end{lstlisting} \end{lstlisting}
\subsection{Signal verwerking} \subsection{Signal verwerking}
......
#!/bin/bash #!/bin/bash
if [ "`which screen`" = '' ]; then if [ "`which screen`" = '' ]; then
echo "GNU screen is missing. I'll now trying to install screen using apt-get."; echo "GNU screen is missing. I'll now trying to install screen using";
echo "The installation of GNU screen requires sudo-rights: "; echo "apt-get. The installation of GNU screen requires sudo-rights: ";
sudo apt-get install screen ; sudo apt-get install screen ;
fi; fi;
......
...@@ -18,6 +18,19 @@ if $COLORTERM == 'gnome-terminal' ...@@ -18,6 +18,19 @@ if $COLORTERM == 'gnome-terminal'
set t_Co=256 set t_Co=256
endif endif
" ,rl = run pdflatex (on current file)
map ,rl :!pdflatex -src -shell-escape -interaction=nonstopmode %
" trigger pdflatex (above) on FileWritePost event
:autocmd BufWritePost *.tex :!pdflatex -src -shell-escape -interaction=nonstopmode % | grep -A 4 -i "error"
set textwidth=80
augroup vimrc_autocmds
autocmd BufEnter * highlight OverLength ctermbg=darkgrey guibg=#592929
autocmd BufEnter * match OverLength /\%81v.*/
augroup END
set nocp set nocp
filetype plugin on filetype plugin on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment