This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
настройка_командных_интерпретаторов [2020/09/10 12:50] val [bash] |
настройка_командных_интерпретаторов [2025/04/04 16:49] (current) val |
||
---|---|---|---|
Line 13: | Line 13: | ||
$ history -d NN | $ history -d NN | ||
+ | |||
+ | $ . /usr/share/bash-completion/bash_completion | ||
$ cat .profile | $ cat .profile | ||
+ | </code><code> | ||
+ | alias kubectl='minikube kubectl --' | ||
+ | source <(kubectl completion bash) | ||
+ | ... | ||
+ | . ~/.bashrc | ||
+ | ... | ||
+ | </code><code> | ||
$ cat .bashrc | $ cat .bashrc | ||
+ | |||
+ | или | ||
+ | |||
+ | # cat /etc/bash.bashrc | ||
</code><code> | </code><code> | ||
... | ... | ||
- | export HISTCONTROL=ignorespace | + | export HISTCONTROL=ignorespace:ignoredups:erasedups |
+ | #unset HISTFILE | ||
HISTSIZE=20000 | HISTSIZE=20000 | ||
Line 34: | Line 48: | ||
</code><code> | </code><code> | ||
$ source .bashrc | $ source .bashrc | ||
+ | |||
+ | # (echo '"\e[A": history-search-backward'; echo '"\e[B": history-search-forward') >> /etc/inputrc | ||
+ | |||
+ | или | ||
$ cat .inputrc | $ cat .inputrc | ||
Line 44: | Line 62: | ||
===== sh ===== | ===== sh ===== | ||
<code> | <code> | ||
- | $ cat .profile | ||
- | |||
$ cat .shrc | $ cat .shrc | ||