Grimoire-
Command
.es

GNU+Linux command memo

No shell history (nor less, vim)

Ne pas archiver ses commandes shell, less ou vim. Pratique quand on débute pour éviter de garder les traces de ses erreurs de jeunesse et autre copier/coller malencontreux quelque part sur son disque dur.

HISTFILE=/dev/null (1)
LESSHISTFILE=/dev/null (2)
alias vi='vim -i NONE' (3)
$ <space> cmd (4)
1 Set zsh history file to /dev/null (via .zshrc) resulting in forgotten thus forgiving history
2 Set less history file to /dev/null (via .zshrc) resulting in forgotten thus forgiving history
3 Tells vim not to store a history of in-vim typed commandes
4 In many shels adding a space before a command cause it not be recorded in history.