prevent unecesary pre_deploy script executions

This commit is contained in:
Alexander Navarro 2024-11-20 11:29:46 -03:00
parent f33c57f1a4
commit 8ccda61811
5 changed files with 42 additions and 3 deletions

View file

@ -115,6 +115,9 @@ setopt hist_find_no_dups
# case insensitive completion
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
{{ #if dotter.packages.fzf }}
zstyle ':completion:*' menu no
zstyle ':fzf-tab:*' show-group full
zstyle ':fzf-tab:*' continuous-trigger '/'
@ -153,6 +156,8 @@ zstyle ':fzf-tab:complete:git-checkout:*' fzf-preview \
# TLDR
zstyle ':fzf-tab:complete:tldr:argument-1' fzf-preview 'tldr --color always $word'
{{ /if }}
# ╭──────────────────────────────────────────────────────────╮
# │ ZSH Options │
# ╰──────────────────────────────────────────────────────────╯
@ -163,7 +168,10 @@ setopt GLOB_DOTS
# ╭──────────────────────────────────────────────────────────╮
# │ Source other files │
# ╰──────────────────────────────────────────────────────────╯
{{ #if dotter.packages.fzf }}
source $HOME/.config/fzf/fzfrc
{{ /if }}
# this prevents errors and not loading some files
for file in $HOME/.config/zsh/**/*.zsh; do
@ -173,7 +181,19 @@ done
# ╭──────────────────────────────────────────────────────────╮
# │ Init external programs │
# ╰──────────────────────────────────────────────────────────╯
{{ #if dotter.packages.fzf }}
eval "$(fzf --zsh)"
{{ /if ~}}
{{ #if (is_executable "zoxide") }}
eval "$(zoxide init --cmd cd zsh)"
{{ /if ~}}
{{ #if dotter.packages.starship }}
eval "$(starship init zsh)"
{{ /if ~}}
{{ #if dotter.packages.mise }}
eval "$(mise activate zsh)"
{{ /if ~}}