zshrc/.zshrc
2025-07-01 04:28:44 +03:00

54 lines
1.5 KiB
Bash

# Включаем автодополнение и автоподсказки
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
# Включаем подсветку синтаксиса
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# История поиска по подстроке
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey "^[[A" history-substring-search-up
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "^[[B" history-substring-search-down
bindkey "$terminfo[kcud1]" history-substring-search-down
# Kitty shell integration
if test -n "$KITTY_INSTALLATION_DIR"; then
export KITTY_SHELL_INTEGRATION="no-rc"
autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
kitty-integration
unfunction kitty-integration
fi
# Включаем oh-my-zsh и необходимые плагины
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
bgnotify
colored-man-pages
copypath
dirhistory
extract
fzf
safe-paste
ssh-agent
timer
universalarchive
zoxide
)
source $ZSH/oh-my-zsh.sh
# История команд
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt SHARE_HISTORY
# Алиасы
alias f="fastfetch"
alias v="nvim"
alias vi="nvim"
alias vim="nvim"