autoload -Uz compinit promptinit compinit zstyle ':completion:*' menu select promptinit prompt off setopt correct setopt AUTO_CD [ -e ~/.profile ] && . ~/.profile # Плагины # /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh . /usr/share/zsh/site-functions/zsh-autosuggestions.zsh . /usr/share/zsh/site-functions/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh # Клавиши как в Emacs bindkey -e # История команд HISTFILE=$HOME/.zsh_history HISTSIZE=10000 SAVEHIST=10000 setopt appendhistory setopt inc_append_history setopt share_history case `tty` in /dev/tty*) TERM=xterm-256color #alias fastfetch='TERM=linux fastfetch' alias tmux='TERM=linux tmux' esac if [ "$TERM" = foot ]; then preexec() { case "$1" in vim* | python* | lua* | node* | git* | doas* | man* ) printf "\033]2;%s\033\\" "$1" esac } precmd() { printf "\033]2;zsh\033\\" } fi