diff --git a/TipsShell.md b/TipsShell.md index da5c8270..814346f2 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -13,4 +13,16 @@ Entre les 3 modes ("login", "interactive non-login" et "non-interactive non-logi ## Script shell -Style guide : \ No newline at end of file +Style guide : + +## History Bash + +`bashrc` : + +~~~ +export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoreboth +export HISTSIZE=65535 +export HISTTIMEFORMAT="%c : " +~~~ + +> *Note* : si besoin on peut `chattr +a /root/.bash_history` pour empĂȘcher sa suppression