Установка программ выполняется с помощью zyedidia/eget
This commit is contained in:
parent
a20d17eb8b
commit
345d23e0dc
@ -1,8 +1,8 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
||||||
zinit load willghatch/zsh-saneopt
|
zinit light willghatch/zsh-saneopt
|
||||||
zinit load mafredri/zsh-async
|
zinit light mafredri/zsh-async
|
||||||
|
|
||||||
export ZSHZ_CASE=smart
|
export ZSHZ_CASE=smart
|
||||||
export ZSHZ_DATA="${ZSH_CACHE_DIR}/z"
|
export ZSHZ_DATA="${ZSH_CACHE_DIR}/z"
|
||||||
@ -16,10 +16,6 @@ if [ "$(id -u)" != "0" ] && [[ -n ${DISPLAY+set} ]]; then
|
|||||||
zinit light marzocchi/zsh-notify
|
zinit light marzocchi/zsh-notify
|
||||||
fi
|
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::clipboard.zsh
|
||||||
zinit snippet OMZL::key-bindings.zsh
|
zinit snippet OMZL::key-bindings.zsh
|
||||||
zinit snippet OMZL::termsupport.zsh
|
zinit snippet OMZL::termsupport.zsh
|
||||||
@ -34,33 +30,23 @@ zinit snippet OMZP::pre-commit
|
|||||||
zinit snippet OMZP::rsync
|
zinit snippet OMZP::rsync
|
||||||
zinit snippet OMZP::vscode
|
zinit snippet OMZP::vscode
|
||||||
zinit snippet OMZP::web-search
|
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 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/completion.zsh
|
||||||
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh
|
zinit snippet https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh
|
||||||
|
|
||||||
zinit ice wait'!0' lucid
|
zinit ice wait'!0' lucid
|
||||||
zinit light joshskidmore/zsh-fzf-history-search
|
zinit light joshskidmore/zsh-fzf-history-search
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v git > /dev/null 2>&1; then
|
if command -v git > /dev/null 2>&1; then
|
||||||
GIT_AUTO_FETCH_INTERVAL=3600
|
GIT_AUTO_FETCH_INTERVAL=3600
|
||||||
zinit snippet OMZP::git
|
zinit snippet OMZP::git
|
||||||
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
|
zinit snippet OMZP::git-extras
|
||||||
else
|
zinit snippet OMZP::github
|
||||||
zinit lucid wait'0a' depth"1" for \
|
[ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch
|
||||||
as"program" \
|
|
||||||
pick"$ZPFX/bin/git-*" \
|
|
||||||
src"etc/git-extras-completion.zsh" \
|
|
||||||
make"PREFIX=$ZPFX" tj/git-extras
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v psql > /dev/null 2>&1; then
|
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
|
zinit light amyreese/zsh-titles
|
||||||
fi
|
fi
|
||||||
if command -v kitty > /dev/null 2>&1; then
|
if command -v kitty > /dev/null 2>&1; then
|
||||||
zinit load redxtech/zsh-kitty
|
zinit light redxtech/zsh-kitty
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
zstyle ':completion:*' accept-exact '*(N)'
|
zstyle ':completion:*' accept-exact '*(N)'
|
||||||
zstyle ':completion:*' use-cache on
|
zstyle ':completion:*' use-cache on
|
||||||
zstyle ':completion:*' cache-path "$ZSH_CACHE_DIR"
|
zstyle ':completion:*' cache-path "$ZSH_CACHE_DIR"
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
zstyle ':completion:*:processes' command 'ps -ax'
|
zstyle ':completion:*:processes' command 'ps -ax'
|
||||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32'
|
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
|
zsh-users/zsh-autosuggestions
|
||||||
|
|
||||||
if [[ -n ${ZSH_MC_SUBSHELL+set} ]] && [[ -n ${SSH_CONNECTION+set} ]]; then
|
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
|
else
|
||||||
zstyle ":history-search-multi-word" page-size "$((LINES/2))"
|
zstyle ":history-search-multi-word" page-size "$((LINES/2))"
|
||||||
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
|
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
|
||||||
|
@ -5,7 +5,10 @@
|
|||||||
bindkey '\e\e' send-break
|
bindkey '\e\e' send-break
|
||||||
|
|
||||||
# Navi
|
# Navi
|
||||||
|
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
|
bindkey '^G' _navi_widget
|
||||||
|
fi
|
||||||
|
|
||||||
# FZF #{{{
|
# FZF #{{{
|
||||||
bindkey "^F" fzf-file-widget # Ctrl+F file search
|
bindkey "^F" fzf-file-widget # Ctrl+F file search
|
||||||
|
@ -8,5 +8,5 @@ if is-at-least 5.3; then
|
|||||||
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
|
||||||
[[ -r "$ZDOTDIR/.p10k.zsh" ]] && source "$ZDOTDIR/.p10k.zsh"
|
[[ -r "$ZDOTDIR/.p10k.zsh" ]] && source "$ZDOTDIR/.p10k.zsh"
|
||||||
else
|
else
|
||||||
zinit load agkozak/agkozak-zsh-prompt
|
zinit light agkozak/agkozak-zsh-prompt
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user