Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Bauer
2bac4dd8c4 feat: build completions only once a day; improve startup time 2026-08-22 11:57:01 +02:00
Daniel Bauer
78b0463b51 fix: dont spawn SSH Agent UI for password 2026-08-22 11:49:09 +02:00
2 changed files with 17 additions and 1 deletions

View File

@@ -7,6 +7,11 @@ export LANG=en_US.UTF-8
# Prefered programs
export EDITOR='vim'
# Force ssh/ssh-add to always prompt for passphrases in the terminal. On WSL,
# DISPLAY is set (WSLg) and the ssh-askpass package is installed, so without
# this OpenSSH prefers popping up a GUI askpass dialog instead of asking here.
export SSH_ASKPASS_REQUIRE='never'
if type bat > /dev/null; then
export MANPAGER='bat -plman'
export PAGER='bat'

View File

@@ -12,7 +12,18 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
autoload -U +X compinit && compinit # fix compdef not found
# Load compdef immediately (needed before antidote loads plugins that call
# it), but only do the expensive security audit + dump rebuild once a day;
# otherwise just source the existing dump (-C).
autoload -U +X compinit
() {
setopt local_options extended_glob
if [[ -n ${HOME}/.zcompdump(#qN.mh+24) ]]; then
compinit
else
compinit -C 2>/dev/null || compinit
fi
}
if [ -f $HOME/.zshrc_local ]; then
source $HOME/.zshrc_local