Настройка
Настройка Zsh и Oh my Zsh - Losst
sudo pacman -S zsh git powerlinezshcurl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | shУстанавливаем оболочку по умолчанию:
chshУстановка zsh-syntax-highlighting:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingzsh-syntax-highlighting/INSTALL.md at master · zsh-users/zsh-syntax-highlighting · GitHub
В случа проблем с цветом автодополнения добавьте в конец файла:
nano ~/.zshrcZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white,bold'Установка zsh-autosuggestions:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionszsh-autosuggestions/INSTALL.md at master · zsh-users/zsh-autosuggestions · GitHub
Добавим плагины и сменим тему:
nano ~/.zshrcZSH_THEME="agnoster"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white,bold'
plugins=(
git
docker
composer
sudo
npm
zsh-autosuggestions
dotnet
pipenv
)Проблема:
zsh: corrupt history file /home/erritis/.zsh_historyИсправить можно: How to fix and recover a “corrupt history file” in zsh · GitHub
fc -R .zsh_history