====== Настройка командных интерпретаторов ====== * [[Переменные окружения]] ===== bash ===== * [[http://www.michurin.net/tools/bash-history.html|Работа с историей команд bash]] * [[https://wiki.archlinux.org/index.php/Bash/Prompt_customization_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)|Bash/Prompt customization (Русский)]] * [[https://habr.com/post/99843/|Горячие клавиши в шелле]] $ PS1="[\h:\W] # " $ history -d NN $ cat .profile alias kubectl='minikube kubectl --' source <(kubectl completion bash) ... . ~/.bashrc ... $ cat .bashrc ... 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 } ... $ source .bashrc # (echo '"\e[A": history-search-backward'; echo '"\e[B": history-search-forward') >> /etc/inputrc или $ cat .inputrc "\e[A": history-search-backward "\e[B": history-search-forward $ bind -f .inputrc ===== sh ===== $ cat .shrc freebsd$ set -E freebsd$ set -V ===== csh ===== * [[http://fedoseyev.ru/2009/04/nastrojka-priglasheniya-v-csh/|Настройка приглашения в csh]] * [[http://wiki-freebsd.tushinec.ru/index.php/Tcsh|Tcsh]] % cat .cshrc % source .cshrc % cat .tcshrc % set prompt = "[%m:%c3] # " % set autolist % bindkey -k up history-search-backward % bindkey -k down history-search-forward