oh-my-zsh: добавление плагина и настройка терминала

This commit is contained in:
Alexander Zhirov 2022-11-09 22:19:10 +03:00
parent acc55bea8c
commit d18dbcffc4
1 changed files with 19 additions and 1 deletions

View File

@ -54,7 +54,25 @@ plugins=(
Установка:
```sh
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git && echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
```
Добавить в файл `.zshrc` плагин `zsh-syntax-highlighting`:
```sh
plugins=(
# other plugins...
zsh-autosuggestions
zsh-syntax-highlighting
)
```
### Настройка терминала
Убрать имя пользователя и компьютера - добавить пустой блок `prompt_context` в файл `.zshrc`:
```sh
prompt_context() {}
```
**Для применения изменений возможен перезапуск терминала!**