2022-12-18 15:58:00 +00:00
|
|
|
# shellcheck shell=bash
|
|
|
|
# vim: ft=sh
|
|
|
|
|
2022-12-19 08:22:18 +00:00
|
|
|
zinit light willghatch/zsh-saneopt
|
|
|
|
zinit light mafredri/zsh-async
|
2022-12-17 16:17:36 +00:00
|
|
|
|
|
|
|
export ZSHZ_CASE=smart
|
|
|
|
export ZSHZ_DATA="${ZSH_CACHE_DIR}/z"
|
2022-12-19 13:49:42 +00:00
|
|
|
zinit ice lucid wait'0' depth'1'
|
2022-12-17 16:17:36 +00:00
|
|
|
zinit light agkozak/zsh-z
|
|
|
|
|
2022-12-22 18:55:30 +00:00
|
|
|
zinit snippet OMZP::pj
|
|
|
|
|
2022-12-18 15:58:00 +00:00
|
|
|
if [ "$(id -u)" != "0" ] && [[ -n ${DISPLAY+set} ]]; then
|
2022-12-17 16:17:36 +00:00
|
|
|
zstyle ':notify:*' expire-time 5000
|
|
|
|
zstyle ':notify:*' command-complete-timeout 20
|
|
|
|
zstyle ':notify:*' enable-on-ssh yes
|
|
|
|
zinit light marzocchi/zsh-notify
|
|
|
|
fi
|
|
|
|
|
2022-12-18 14:39:40 +00:00
|
|
|
zinit snippet OMZL::clipboard.zsh
|
2022-12-17 16:17:36 +00:00
|
|
|
zinit snippet OMZL::key-bindings.zsh
|
2022-12-18 14:39:40 +00:00
|
|
|
zinit snippet OMZL::termsupport.zsh
|
2022-12-21 06:42:47 +00:00
|
|
|
|
|
|
|
if command -v autojump > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::autojump
|
|
|
|
fi
|
|
|
|
if [ -x /usr/lib/command-not-found ]; then
|
|
|
|
zinit snippet OMZP::command-not-found
|
|
|
|
fi
|
2022-12-17 16:17:36 +00:00
|
|
|
zinit snippet OMZP::common-aliases
|
|
|
|
zinit snippet OMZP::debian
|
|
|
|
zinit snippet OMZP::isodate
|
2022-12-21 06:42:47 +00:00
|
|
|
if command -v mosh > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::mosh
|
|
|
|
fi
|
|
|
|
if command -v nmap > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::nmap
|
|
|
|
fi
|
|
|
|
if command -v pre-commit > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::pre-commit
|
|
|
|
fi
|
|
|
|
if command -v rsync > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::rsync
|
|
|
|
fi
|
2022-12-17 16:17:36 +00:00
|
|
|
zinit snippet OMZP::vscode
|
|
|
|
zinit snippet OMZP::web-search
|
2022-12-20 15:05:16 +00:00
|
|
|
if command -v git-lfs > /dev/null 2>&1; then
|
|
|
|
zinit light brymck/print-alias
|
|
|
|
fi
|
2022-12-18 08:51:02 +00:00
|
|
|
|
2022-12-19 08:22:18 +00:00
|
|
|
if command -v fzf > /dev/null 2>&1; then
|
2022-12-20 15:05:16 +00:00
|
|
|
if is-at-least "0.34" "$(fzf --version | awk '{ print $1; }')"; then
|
|
|
|
zinit ice lucid 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
|
2022-12-18 08:51:02 +00:00
|
|
|
|
2022-12-20 15:05:16 +00:00
|
|
|
zinit ice lucid wait'0' lucid
|
|
|
|
zinit light joshskidmore/zsh-fzf-history-search
|
|
|
|
fi
|
2022-12-19 08:22:18 +00:00
|
|
|
fi
|
2022-12-17 16:17:36 +00:00
|
|
|
|
2022-12-22 18:49:25 +00:00
|
|
|
zinit light zdharma-continuum/zsh-navigation-tools
|
|
|
|
|
2022-12-17 16:17:36 +00:00
|
|
|
if command -v git > /dev/null 2>&1; then
|
|
|
|
GIT_AUTO_FETCH_INTERVAL=3600
|
2022-12-20 08:29:43 +00:00
|
|
|
zinit snippet OMZL::git.zsh
|
2022-12-17 16:17:36 +00:00
|
|
|
zinit snippet OMZP::git
|
2022-12-19 08:22:18 +00:00
|
|
|
zinit snippet OMZP::git-extras
|
2022-12-17 16:17:36 +00:00
|
|
|
zinit snippet OMZP::github
|
2022-12-18 09:37:32 +00:00
|
|
|
[ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch
|
2022-12-17 16:17:36 +00:00
|
|
|
fi
|
2022-12-18 09:37:32 +00:00
|
|
|
|
2022-12-17 16:17:36 +00:00
|
|
|
if command -v psql > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::postgres
|
|
|
|
fi
|
|
|
|
if command -v sudo > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::sudo
|
|
|
|
fi
|
|
|
|
if command -v systemctl > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::systemd
|
|
|
|
fi
|
|
|
|
if command -v vim > /dev/null 2>&1; then
|
|
|
|
zinit snippet OMZP::vim-interaction
|
|
|
|
fi
|
|
|
|
if command -v tmux > /dev/null 2>&1; then
|
|
|
|
zstyle ':prezto:module:tmux:auto-start' local 'no'
|
|
|
|
zstyle ':prezto:module:tmux:auto-start' remote 'no'
|
|
|
|
zstyle ':prezto:module:tmux:session' name "$(hostname)"
|
|
|
|
zinit ice pick'init.zsh'
|
|
|
|
zinit light laggardkernel/zsh-tmux
|
|
|
|
zinit light amyreese/zsh-titles
|
|
|
|
fi
|
|
|
|
if command -v kitty > /dev/null 2>&1; then
|
2022-12-19 08:22:18 +00:00
|
|
|
zinit light redxtech/zsh-kitty
|
2022-12-17 16:17:36 +00:00
|
|
|
fi
|
|
|
|
|