ajout infos pour History Bash
This commit is contained in:
parent
254898b014
commit
ee4a03d760
14
TipsShell.md
14
TipsShell.md
|
@ -13,4 +13,16 @@ Entre les 3 modes ("login", "interactive non-login" et "non-interactive non-logi
|
||||||
|
|
||||||
## Script shell
|
## Script shell
|
||||||
|
|
||||||
Style guide : <https://google.github.io/styleguide/shell.xml>
|
Style guide : <https://google.github.io/styleguide/shell.xml>
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
Loading…
Reference in a new issue