User Tools

Site Tools


настройка_командных_интерпретаторов

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
настройка_командных_интерпретаторов [2020/11/05 11:15]
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 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 36: 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 46: Line 62:
 ===== sh ===== ===== sh =====
 <​code>​ <​code>​
-$ cat .profile 
- 
 $ cat .shrc $ cat .shrc
  
настройка_командных_интерпретаторов.1604564139.txt.gz · Last modified: 2020/11/05 11:15 (external edit)