Skip to content
Snippets Groups Projects
Commit ea3add61 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Fixed code examples in OS assignment 3.

parent a3543b9d
No related branches found
No related tags found
No related merge requests found
......@@ -193,8 +193,8 @@ aan bod in dit practicum en wordt daarom niet verder behandeld.
\subsection{Experimenten met logfiles}
\begin{lstlisting}[language=bash]
for i in {1..6}; do fish < input$i.txt; ./view-logs.bash; done
\begin{lstlisting}[language=bash,numbers=none]
for i in {1..6}; do ./fish < input$i.txt; ./view-logs.bash; done
\end{lstlisting}
\subsection{Signal verwerking}
......
#!/bin/bash
if [ "`which screen`" = '' ]; then
echo "GNU screen is missing. I'll now trying to install screen using apt-get.";
echo "The installation of GNU screen requires sudo-rights: ";
echo "GNU screen is missing. I'll now trying to install screen using";
echo "apt-get. The installation of GNU screen requires sudo-rights: ";
sudo apt-get install screen ;
fi;
......
......@@ -18,6 +18,19 @@ if $COLORTERM == 'gnome-terminal'
set t_Co=256
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
filetype plugin on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment