1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
5cfbe03d71
zsh: optimize gpg-agent initialization
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-12-19 20:50:46 +03:00
4e67805847
dotfiles: update gitignore 2024-12-19 20:49:51 +03:00
8956cd7280
dotfiles: separate gitignore for vcs 2024-12-19 20:49:08 +03:00
3 changed files with 31 additions and 6 deletions

View File

@ -4,9 +4,11 @@
!/.cache/zsh/compzwc/.keep
!/.cache/zsh/ssh/.keep
!/.config/dotfiles/bin/.keep
!/.config/dotfiles/debian.sources
!/.config/dotfiles/gen-gitignore.sh
!/.config/dotfiles/gitattributes
!/.config/dotfiles/gitignore
!/.config/dotfiles/gitignore.vcs
!/.config/dotfiles/install.sh
!/.config/dotfiles/scripts/.keep
!/.config/dotfiles/woodpecker.yml

View File

@ -0,0 +1,18 @@
!/.cache/zsh/compcache/.keep
!/.cache/zsh/completion/.keep
!/.cache/zsh/compzwc/.keep
!/.cache/zsh/ssh/.keep
!/.config/zsh/local/.keep
!/.config/zsh/local/completion/.keep
!/.config/zsh/local/env.zsh.example
!/.config/zsh/var/.keep
/.cache/zsh/compcache/*
/.cache/zsh/compdump
/.cache/zsh/completion/*
/.cache/zsh/compzwc/*
/.cache/zsh/ssh/*
/.config/zsh/**/*.zwc
/.config/zsh/local.zsh
/.config/zsh/local/*
/.config/zsh/var/*

View File

@ -6,12 +6,17 @@ z-gpg-agent() {
(( ${+commands[gpg-agent]} )) || return 127
local u
if (( ${+commands[systemctl]} )) ; then
local u s
for u in gpg-agent.{service,socket} ; do
z-systemctl-exists --user $u || continue
s=$(z-systemctl --user is-enabled $u)
case "$s" in
disabled ) ;;
* ) continue ;;
esac
z-systemctl --user --now enable $u
done
fi
(( ${+commands[gpgconf]} )) || return 127