From 383d167b72fb642db2212210f09a727f270f43bb Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 18 Aug 2022 00:09:20 +0200 Subject: [PATCH] fix(zsh): add fzf plugin and GPG as SSH Signed-off-by: Matej Focko --- playbooks/roles/shell/templates/zshrc.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/shell/templates/zshrc.j2 b/playbooks/roles/shell/templates/zshrc.j2 index ca68581..2ff0bad 100644 --- a/playbooks/roles/shell/templates/zshrc.j2 +++ b/playbooks/roles/shell/templates/zshrc.j2 @@ -2,7 +2,7 @@ export ZSH=/home/mfocko/.oh-my-zsh CASE_SENSITIVE="true" ENABLE_CORRECTION="true" -plugins=(git common-aliases history systemd sudo zsh-autosuggestions zsh-syntax-highlighting) +plugins=(git common-aliases history systemd sudo zsh-autosuggestions zsh-syntax-highlighting fzf) export PATH="$PATH:$HOME/.local/bin" source $ZSH/oh-my-zsh.sh @@ -18,7 +18,11 @@ export CXXFLAGS="-std=c++14 -Wall -Werror" export LDLIBS="-lm" export LANG="en_US.UTF-8" -export GPG_TTY=$(tty) + +### gpg ### +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent alias q="exit" alias k="exit"