From c6edfd69d50a9d6597a6dee793d4677afd844174 Mon Sep 17 00:00:00 2001 From: Thies Lennart Alff Date: Thu, 8 Aug 2024 13:33:35 +0200 Subject: [PATCH] use GPG anget --- home/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/.zshrc b/home/.zshrc index bc82fc3..f4a8122 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -29,6 +29,10 @@ else export EDITOR='nvim' fi +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent + alias reboot-windows="systemctl reboot --boot-loader-entry=windows.conf" alias reboot-linux="systemctl reboot --boot-loader-entry=arch.conf" alias zshrc="nvim ~/.zshrc" @@ -46,6 +50,7 @@ alias rosterm='find_or_create_rosterm' alias git-delete-merged="git branch --merged main | grep -v '^[ *]*main$' | xargs git branch -d" + function find_or_create_rosterm() { docker container inspect ros2-vim > /dev/null 2>&1 if [ $? -eq 0 ]; then