This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
настройка_командных_интерпретаторов [2021/05/11 13:54] admin [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 25: | Line 39: | ||
# export PATH="$PATH:/opt/mssql-tools/bin" | # export PATH="$PATH:/opt/mssql-tools/bin" | ||
- | |||
- | alias npp='/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe' | ||
alias ssn2='ssh node2' | alias ssn2='ssh node2' | ||
Line 32: | Line 44: | ||
scn2() { | scn2() { | ||
scp $1 node2:$1 | scp $1 node2:$1 | ||
- | } | ||
- | |||
- | scn() { | ||
- | scp $2 node${1}:$2 | ||
- | } | ||
- | |||
- | ssn() { | ||
- | DST_HOST_NUM=$1 | ||
- | shift | ||
- | ssh node${DST_HOST_NUM} $* | ||
} | } | ||
... | ... | ||
</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 56: | Line 62: | ||
===== sh ===== | ===== sh ===== | ||
<code> | <code> | ||
- | $ cat .profile | ||
- | |||
$ cat .shrc | $ cat .shrc | ||