This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
настройка_командных_интерпретаторов [2018/11/13 08:28] val |
настройка_командных_интерпретаторов [2025/04/04 16:49] (current) val |
||
---|---|---|---|
Line 11: | Line 11: | ||
<code> | <code> | ||
$ PS1="[\h:\W] # " | $ PS1="[\h:\W] # " | ||
- | </code> | + | |
- | * [[Управление учетными записями в Linux#Назначение пароля]] | + | $ history -d NN |
- | <code> | + | |
- | $ export HISTCONTROL=ignorespace | + | $ . /usr/share/bash-completion/bash_completion |
- | </code><code> | + | |
$ 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 PATH="$PATH:/opt/mssql-tools/bin" | + | export HISTCONTROL=ignorespace:ignoredups:erasedups |
+ | #unset HISTFILE | ||
+ | |||
+ | HISTSIZE=20000 | ||
+ | HISTFILESIZE=20000 | ||
+ | |||
+ | # export PATH="$PATH:/opt/mssql-tools/bin" | ||
+ | |||
+ | alias ssn2='ssh node2' | ||
+ | |||
+ | scn2() { | ||
+ | scp $1 node2:$1 | ||
+ | } | ||
+ | ... | ||
</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 29: | Line 57: | ||
"\e[A": history-search-backward | "\e[A": history-search-backward | ||
"\e[B": history-search-forward | "\e[B": history-search-forward | ||
+ | </code><code> | ||
+ | $ bind -f .inputrc | ||
</code> | </code> | ||
- | |||
===== sh ===== | ===== sh ===== | ||
<code> | <code> | ||
- | $ cat .profile | ||
- | |||
$ cat .shrc | $ cat .shrc | ||