informatique:hstr
Différences
Ci-dessous, les différences entre deux révisions de la page.
| informatique:hstr [2020/08/09 13:03] – modification externe 127.0.0.1 | informatique:hstr [2020/12/02 09:33] (Version actuelle) – simon | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| [[https:// | [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | $ sudo add-apt-repository ppa: | ||
| + | </ | ||
| + | |||
| + | ===== Configuration ===== | ||
| + | On peut fouiller la [[https:// | ||
| + | <code bash> | ||
| + | hstr --show-configuration >> ~/.bashrc | ||
| + | </ | ||
| + | |||
| + | J'ai changé deux-trois trucs, voici ma configuration finale : | ||
| + | <code bash> | ||
| + | #hstr | ||
| + | # HSTR configuration - add this to ~/.bashrc | ||
| + | alias hh=hstr | ||
| + | #export HSTR_CONFIG=hicolor | ||
| + | export HSTR_CONFIG=hicolor, | ||
| + | shopt -s histappend | ||
| + | #export HISTCONTROL=ignorespace | ||
| + | export HISTCONTROL=ignoreboth | ||
| + | export HISTFILESIZE=10000 | ||
| + | export HISTSIZE=${HISTFILESIZE} | ||
| + | # ensure synchronization between bash memory and history file | ||
| + | export PROMPT_COMMAND=" | ||
| + | # if this is interactive shell, then bind hstr to Ctrl-r (for Vi mode check doc) | ||
| + | if [[ $- =~ .*i.* ]]; then bind '" | ||
| + | # if this is interactive shell, then bind 'kill last command' | ||
| + | if [[ $- =~ .*i.* ]]; then bind '" | ||
| + | </ | ||
informatique/hstr.1596978214.txt.gz · Dernière modification : de 127.0.0.1
