Personnaliser son shell - prompt (couleur + déplacement) - bash : PS1=$'\e[0;31m[\u@\h \W]\$ \e[0m' - zsh : PS1=$'\e[0;31m[%n@%m %d]\$ \e[0m' - déplacement dans tmux : bind-key -n M-p run-shell "$MYCONFDIR/tmux/plugins/tmux-copycat/scripts/copycat_mode_start.sh ''" - bind keys - bash : bind -P, bind "":"" - zsh : bindkeys - see code with cat - arguments précédents - !$, !^ !:2, !:2-3, !:2*, !! - raccourcis - bash - dernier : alt+. ou alt+_ - autre : alt+num puis alt+. - zsh - config zshrc # Copy arguments from previous lines #################################### insert-next-last-word() { zle insert-last-word 1 } zle -N insert-next-last-word autoload copy-earlier-word zle -N copy-earlier-word copy-forward-word() { zle copy-earlier-word 1 } zle -N copy-forward-word if false; then bindkey '^K' insert-last-word bindkey '^J' insert-next-last-word bindkey '^H' copy-earlier-word bindkey '^L' copy-forward-word else bindkey "^[[1;5A" insert-last-word bindkey "^[[1;5B" insert-next-last-word bindkey "^[[1;5D" copy-earlier-word bindkey "^[[1;5C" copy-forward-word fi #################################### - edit-and-execute-command can be found on "\C-x\C-e". Script - set -e - LC_ALL=C - watch -g - inotifywait - inotifywait - inotifywait -m - inotifywait -e - parallel - parallel echo ::: 6 7 ::: 4 5 ::: 1 2 3 - parallel echo {1} {2} {3} ::: 6 7 ::: 4 5 ::: 1 2 3 - parallel --link echo ::: A B C ::: D E F - parallel echo hey :::: - -k to keep order -> exercice : lister lettres alphabet avec leur indice (diff des deux avec <()) - voir tuto : https://www.gnu.org/software/parallel/parallel_tutorial.html Outils - ag, ack (peut être utilisé comm vimgrep) - xclip (pour faire comme alias global CP) - rename (perl rename), qmv - autoenv - fasd - fpp (ex: git log --name-only | fpp) - colorpattern () { grep --color -E "$1|$" $2 } - deer (alt+d, i, c) zsh (ls -U to prevent sorting) - ** - *(om[1,2]), *(oL) - ~, ^ - modificateur de variables, Glob Qualifiers - alias globaux - complétion (commandes (git, docker, tmux...), files by date, files found) - recherche dans la complétion