From 8654946bd78886f8772c63d9aca93dd36bd68fa4 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 14 Sep 2023 11:26:23 +0200 Subject: [PATCH] add sort to fuzzel and choose --- dot_config/choose/executable_choose-pass.sh | 2 +- dot_config/fuzzel/executable_fuzzel-pass.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/choose/executable_choose-pass.sh b/dot_config/choose/executable_choose-pass.sh index 6d88df4..5702b82 100644 --- a/dot_config/choose/executable_choose-pass.sh +++ b/dot_config/choose/executable_choose-pass.sh @@ -2,6 +2,6 @@ # Use fuzzel to find a password from password-store and copy it to clipboard. # inpired by: https://gist.github.com/igemnace/2b8609d280752e8a1b173204c14f6892 -pass_name=$(cd $HOME/.password-store && rg --files | sed 's/\.gpg$//' | choose) +pass_name=$(cd $HOME/.password-store && rg --files | sort | sed 's/\.gpg$//' | choose) [[ $pass_name != "" ]] && pass show -c $pass_name diff --git a/dot_config/fuzzel/executable_fuzzel-pass.sh b/dot_config/fuzzel/executable_fuzzel-pass.sh index e6e792c..f0dc0cf 100644 --- a/dot_config/fuzzel/executable_fuzzel-pass.sh +++ b/dot_config/fuzzel/executable_fuzzel-pass.sh @@ -2,6 +2,6 @@ # Use fuzzel to find a password from password-store and copy it to clipboard. # inpired by: https://gist.github.com/igemnace/2b8609d280752e8a1b173204c14f6892 -pass_name=$(cd $HOME/.password-store && rg --files | sed 's/\.gpg$//' | fuzzel -d) +pass_name=$(cd $HOME/.password-store && rg --files | sort | sed 's/\.gpg$//' | fuzzel -d) [[ $pass_name != "" ]] && pass show -c $pass_name