124 private links
Ctrl + R : rechercher une commande
Ctrl + U : supprimer avant le curseur jusqu’au début de la ligne
Ctrl + K : supprimer depuis le curseur jusqu’à la fin de la ligne (Killing)
Ctrl + Y : restaurer ce qui a été supprimé avec l’une des combinaisons (Yanking)
Alt + U : mettre en majuscule depuis le curseur jusqu’à la fin de la chaîne (Uppercase)
Alt + L : mettre en minuscule depuis le curseur jusqu’à la fin de la chaîne (Lowercase)
Alt + C : mettre en majuscule le caractère sous le curseur (Capitalize)
Voir plus:
man -P 'less -p ^READLINE' bash
man -P 'less -p ^EDITING' readline
Fix WSL not starting:
Run windows + R
type SystemPropertiesAdvanced
click settings in performance group
In advanced tab, deselect the automatically manage paging file size for all drives
Select custom size and enter 800 for initial size, 1024 for maximum size.
Apply changes and restart.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^]/d' -e 's/ (.*)/ (\1)/'
}
PS1='${debian_chroot:+($debian_chroot)}[\e[1;32m]\u@\h[\e[00m] [\e[01;34m]\w[\e[33m]$(parse_git_branch) [\e[34m]\$[\e[00m] '
do not delete / or prompt if deleting more than 3 files at a time
alias rm='rm -I --preserve-root'
confirmation
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
Parenting changing perms on /
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'