Skip to content
Snippets Groups Projects
Commit 2804d95f authored by Yann's avatar Yann :tada:
Browse files

Rendu première partie

parent 636e1471
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage{times} \usepackage{times}
\DeclareUnicodeCharacter{25CF}{$\bullet$}
\DeclareUnicodeCharacter{25CB}{$\circ$}
\usepackage{array} \usepackage{array}
\usepackage{graphicx} \usepackage{graphicx}
...@@ -21,7 +23,7 @@ ...@@ -21,7 +23,7 @@
\part{Efficacité de l'environnement de travail} \part{Efficacité de l'environnement de travail}
\chapter{La souris} \chapter{La souris}
\section{\#1} \section{}
\begin{tabular}{|c|c|c|} \begin{tabular}{|c|c|c|}
\hline \hline
\textbf{Priorité} & \textbf{Problème} & \textbf{Correctif} \\ \textbf{Priorité} & \textbf{Problème} & \textbf{Correctif} \\
...@@ -40,21 +42,188 @@ ...@@ -40,21 +42,188 @@
\end{tabular} \end{tabular}
\chapter{Le clavier} \chapter{Le clavier}
\section{\#2} \section{}
\fbox{\begin{minipage}{0.9\textwidth} \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. 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} \end{center}
}
\begin{center}
\includegraphics[width=7cm]{1}
\includegraphics[width=7cm]{2} \section{}
\begin{center}
\includegraphics[width=6cm]{1}
\includegraphics[width=6cm]{2}
\end{center} \end{center}
\chapter{Le shell} \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} \part{SSH}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment