diff --git a/rapport.pdf b/rapport.pdf index 2015c0602ef38c80b402ac9e4ecf9f25f86a812b..ec3b13cd0fac2a9c0508081fecef666e665ae360 100644 Binary files a/rapport.pdf and b/rapport.pdf differ diff --git a/rapport.tex b/rapport.tex index 6065e6e0d119c41a9741cdc564d7d122d0d3701a..244be24e5ee6473c91aea4d063c1b9272ad35ec0 100644 --- a/rapport.tex +++ b/rapport.tex @@ -5,6 +5,8 @@ \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{times} +\DeclareUnicodeCharacter{25CF}{$\bullet$} +\DeclareUnicodeCharacter{25CB}{$\circ$} \usepackage{array} \usepackage{graphicx} @@ -21,7 +23,7 @@ \part{Efficacité de l'environnement de travail} \chapter{La souris} - \section{\#1} + \section{} \begin{tabular}{|c|c|c|} \hline \textbf{Priorité} & \textbf{Problème} & \textbf{Correctif} \\ @@ -40,21 +42,188 @@ \end{tabular} \chapter{Le clavier} - \section{\#2} - \fbox{\begin{minipage}{0.9\textwidth} + \section{} + \begin{center} J’ai choisi d’utiliser Agile Fingers, car il est bien fait et il donne des r\'{e}sultats avec des graphiques concernant notre utilisation et notre progression. - \end{minipage} - } - - \begin{center} - \includegraphics[width=7cm]{1} + \end{center} - \includegraphics[width=7cm]{2} + \section{} + \begin{center} + \includegraphics[width=6cm]{1} + + \includegraphics[width=6cm]{2} \end{center} \chapter{Le shell} - \section{\#3} + \section{} + \fbox{\begin{minipage}{\textwidth} + nano .bashrc + + – – – – – – – + + \#vim + + set -o vi + \end{minipage}} + + \section{} + \fbox{\begin{minipage}{\textwidth} + sudo update-alternatives --config editor + + – – – – – + + 4 + \end{minipage}} + \chapter{Bash history} + \section{} + \begin{center} + Il n’y a aucune information sensible, mais s’il y en avait, il faut les supprimer / ne pas les enregistrer. + \end{center} + + \section{} + \begin{center} + La cause est qu’il utilise le shell zsh et non celui de base. + \end{center} + + \section{} + \fbox{\begin{minipage}{\textwidth} + nano .bashrc + + – – – – – + + \#HISTIGNORE + + export HISTIGNORE="ls:cd:pwd:history" + \end{minipage}} + + \chapter{Bash aliases} + \section{} + \fbox{\begin{minipage}{\textwidth} + \#creerdossier + + function mkcd() \{ + + mkdir "\$1"; + + cd "\$1"; + + \} + \end{minipage}} + + \section{} + \fbox{\begin{minipage}{\textwidth} + \#GitSuperRapide + + function gitemergency() \{ + + git add .; + + git commit -m "Commit d'urgence"; + + git push -u origin; + + \} + \end{minipage}} + + \chapter{Auto-complétion} + \section{} + \fbox{\begin{minipage}{\textwidth} + \_backup() + + \{ + + local cur prev opts + + cur="\$\{COMP\_WORDS[COMP\_CWORD]\}" + + prev="\$\{COMP\_WORDS[COMP\_CWORD-1]\}" + + local files=("\$\{cur\}"*) + + case \$COMP\_CWORD in + + 1) opts=`getent passwd | cut -d: -f1`;; + + 2) opts="now tonight tomorrow";; + + 3) opts="\$\{files[@]\}";; + + *);; + + esac + + COMPREPLY=() + + COMPREPLY=( \$(compgen -W "\$opts" -- \$\{cur\}) ) + + return 0 + + \} + + complete -o nospace -F \_backup backup + \end{minipage}} + + \chapter{Prompt customization} + \section{} + \fbox{\begin{minipage}{\textwidth} + nano .zshrc + + – – – – – + + plugins=( + + vagrant-prompt + + ) + \end{minipage}} + + \section{} + \fbox{\begin{minipage}{1.07\textwidth} + nano dieter.zsh-theme + + – – – – – + + PROMPT='\$\{time\} \$\{user\}\$\{host\} \$\{pwd\} \$(vagrant\_prompt\_info)' + + ZSH\_THEME\_VAGRANT\_PROMPT\_PREFIX="\%\{\$fg\_bold[blue]\%\}[" + + ZSH\_THEME\_VAGRANT\_PROMPT\_SUFFIX="\%\{\$fg\_bold[blue]\%\}]\%\{\$reset\_color\%\} " + + ZSH\_THEME\_VAGRANT\_PROMPT\_RUNNING="\%\{\$fg\_no\_bold[green]\%\}●" + + ZSH\_THEME\_VAGRANT\_PROMPT\_POWEROFF="\%\{\$fg\_no\_bold[red]\%\}●" + + ZSH\_THEME\_VAGRANT\_PROMPT\_SUSPENDED="\%\{\$fg\_no\_bold[yellow]\%\}●" + + ZSH\_THEME\_VAGRANT\_PROMPT\_NOT\_CREATED="\%\{\$fg\_no\_bold[white]\%\}○" + \end{minipage}} + + \chapter{Custom shortcuts} + \section{} + \fbox{\begin{minipage}{\textwidth} + \#!/bin/zsh + + fonctionzsh1() \{ + + systemctl is-active --quiet apache2 \&\& systemctl stop apache2 || + + systemctl start apache2 + + \} + \end{minipage}} + + \chapter{Les terminaux} + \section{} + \begin{center} + J'ai choisi d'utiliser Terminator, car il est basé sur GNOME terminal que j'apprécie beaucoup et il peut se diviser facilement grâce au clique droit. + \linebreak + \linebreak + De plus, le système de mettre chaque terminal dans un groupe pour éviter de taper X fois la même commande est vraiment pratique. + \linebreak + \linebreak + Pour finir, sa documentation est facile à prendre en main, j'ai su utiliser Terminator en une après-midi. + \end{center} \part{SSH}