Установка программ выполняется с помощью zyedidia/eget

This commit is contained in:
Andrei Astafev 2022-12-19 11:22:18 +03:00
parent a20d17eb8b
commit 345d23e0dc
4 changed files with 19 additions and 29 deletions

View File

@ -1,8 +1,8 @@
# shellcheck shell=bash
# vim: ft=sh
zinit load willghatch/zsh-saneopt
zinit load mafredri/zsh-async
zinit light willghatch/zsh-saneopt
zinit light mafredri/zsh-async
export ZSHZ_CASE=smart
export ZSHZ_DATA="${ZSH_CACHE_DIR}/z"
@ -16,10 +16,6 @@ if [ "$(id -u)" != "0" ] && [[ -n ${DISPLAY+set} ]]; then
zinit light marzocchi/zsh-notify
fi
zinit ice wait'!0' from"gh-r" as"program"
zinit light denisidoro/navi
zinit snippet https://github.com/denisidoro/navi/blob/master/shell/navi.plugin.zsh
zinit snippet OMZL::clipboard.zsh
zinit snippet OMZL::key-bindings.zsh
zinit snippet OMZL::termsupport.zsh
@ -34,33 +30,23 @@ zinit snippet OMZP::pre-commit
zinit snippet OMZP::rsync
zinit snippet OMZP::vscode
zinit snippet OMZP::web-search
zinit load brymck/print-alias
zinit light brymck/print-alias
zinit ice wait'!0' from"gh-r" as"program"
zinit light junegunn/fzf
if command -v fzf > /dev/null 2>&1; then
zinit ice wait'!0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion"
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/completion.zsh
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh
zinit ice wait'!0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion"
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/completion.zsh
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh
zinit ice wait'!0' lucid
zinit light joshskidmore/zsh-fzf-history-search
zinit ice wait'!0' lucid
zinit light joshskidmore/zsh-fzf-history-search
fi
if command -v git > /dev/null 2>&1; then
GIT_AUTO_FETCH_INTERVAL=3600
zinit snippet OMZP::git
zinit snippet OMZP::git-extras
zinit snippet OMZP::github
zinit load paulirish/git-open
[ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch
if [ -x /usr/bin/git-extras ]; then
zinit snippet OMZP::git-extras
else
zinit lucid wait'0a' depth"1" for \
as"program" \
pick"$ZPFX/bin/git-*" \
src"etc/git-extras-completion.zsh" \
make"PREFIX=$ZPFX" tj/git-extras
fi
fi
if command -v psql > /dev/null 2>&1; then
@ -84,6 +70,6 @@ if command -v tmux > /dev/null 2>&1; then
zinit light amyreese/zsh-titles
fi
if command -v kitty > /dev/null 2>&1; then
zinit load redxtech/zsh-kitty
zinit light redxtech/zsh-kitty
fi

View File

@ -5,6 +5,7 @@
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$ZSH_CACHE_DIR"
zstyle ':completion:*' menu select
zstyle ':completion:*:processes' command 'ps -ax'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32'
@ -37,7 +38,7 @@ zinit wait'!0' lucid light-mode depth'1' for \
zsh-users/zsh-autosuggestions
if [[ -n ${ZSH_MC_SUBSHELL+set} ]] && [[ -n ${SSH_CONNECTION+set} ]]; then
zinit load zsh-users/zsh-history-substring-search
zinit light zsh-users/zsh-history-substring-search
else
zstyle ":history-search-multi-word" page-size "$((LINES/2))"
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"

View File

@ -5,7 +5,10 @@
bindkey '\e\e' send-break
# Navi
bindkey '^G' _navi_widget
if command -v navi > /dev/null 2>&1; then
zinit snippet https://github.com/denisidoro/navi/blob/master/shell/navi.plugin.zsh
bindkey '^G' _navi_widget
fi
# FZF #{{{
bindkey "^F" fzf-file-widget # Ctrl+F file search

View File

@ -8,5 +8,5 @@ if is-at-least 5.3; then
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
[[ -r "$ZDOTDIR/.p10k.zsh" ]] && source "$ZDOTDIR/.p10k.zsh"
else
zinit load agkozak/agkozak-zsh-prompt
zinit light agkozak/agkozak-zsh-prompt
fi