From 9d48da50466d057c078c6766ebe680f08a789493 Mon Sep 17 00:00:00 2001 From: Gil Portenseigne Date: Fri, 7 Aug 2026 10:48:27 +0200 Subject: [PATCH] changement alias pshow --- .config/bash/gil_specific.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/bash/gil_specific.sh b/.config/bash/gil_specific.sh index 1b635a1..81a9733 100644 --- a/.config/bash/gil_specific.sh +++ b/.config/bash/gil_specific.sh @@ -18,10 +18,12 @@ alias upr='find plugins -name ".git" -type d -prune | while read -r repo; do \ done ' -alias pshow='find ~/.password-store -name "*.gpg" \ - | sed "s|.*/.password-store/||; s|\.gpg$||" \ - | fzf \ - | xargs -r pass show' +alias pshow='entry=$(find ~/.password-store -type f -name "*.gpg" \ +| sed "s|^$HOME/.password-store/||; s|\.gpg$||" \ +| fzf) && \ +echo "Entrée : $entry" && \ +echo && \ +pass show "$entry"' export PATH=$HOME/.local/bin:$PATH