id | aliases | tags |
---|---|---|
zsh_install |
sudo apt install zsh zsh-antigen zsh-doc zsh-syntax-highlighting zsh-autosuggestions
chsh -s /usr/bin/zsh
and don't forget to restart your gnome session to apply changes
on first start press 2
to populate ~/.zshrc
with default recommended configuration
sudo apt install git curl
using https://ohmyz.sh/#install install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
omz theme list
omz theme use theme
omz theme set theme
edit file ~/.zshrc
to set defautl theme
gedit ~/.zshrc
edit line ZSH_THEME="robbyrussell"
set to desirable theme: michelebologna
more themes here https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
add to the end of file:
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
or just run script
omz theme list
omz theme set michelebologna
# or
sed -i.bak s/ZSH_THEME=".*"/ZSH_THEME=\"michelebologna\"/ ~/.zshrc
>>~/.zshrc<<_EOF_
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
_EOF_
# install font mamanger
sudo apt install font-manager
download nerd fonts Jetbrains Mono
from https://www.nerdfonts.com/font-downloads
unpack somewhere
install fonts with font-manager
set defualt font for teminal JetBrainsMonoNL Nerd Font Mono
macOS
brew install zsh-fast-syntax-highlighting
>>~/.zshrc<<_EOF_
source ${HOMEBREW_PREFIX}/share/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
_EOF_
Linux
apt install zsh-fast-syntax-highlighting
source /usr/share/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
fix slow pasting with zsh-autosuggestions see
# This speeds up pasting w/ autosuggest
# https://github.com/zsh-users/zsh-autosuggestions/issues/238
pasteinit() {
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
}
pastefinish() {
zle -N self-insert $OLD_SELF_INSERT
}
zstyle :bracketed-paste-magic paste-init pasteinit
zstyle :bracketed-paste-magic paste-finish pastefinish