aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2022-01-19 17:26:19 +0100
committerJustin Gassner <justin.gassner@mailbox.org>2023-12-05 18:11:31 +0100
commite85315b89f05a8ec43e72daed96dad966f8da958 (patch)
treeac12d216f9d9745d5a3563aa56ce183114444d90
parentb5e965a838bb68c1227caa2cdd874ba496f10149 (diff)
downloadpass-no-tree.tar.zst
Use ls instead of treeno-tree
-rw-r--r--README2
-rwxr-xr-xsrc/password-store.sh6
2 files changed, 2 insertions, 6 deletions
diff --git a/README b/README
index 1a46242..7835e96 100644
--- a/README
+++ b/README
@@ -23,8 +23,6 @@ Depends on:
http://sourceforge.net/projects/xclip/
- wl-clipboard (for wlroots Wayland-based environments)
https://github.com/bugaevc/wl-clipboard
-- tree >= 1.7.0
- http://mama.indstate.edu/users/ice/tree/
- GNU getopt
http://www.kernel.org/pub/linux/utils/util-linux/
http://software.frodo.looijaard.name/getopt/
diff --git a/src/password-store.sh b/src/password-store.sh
index 22e818f..5f6b0b5 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -402,7 +402,7 @@ cmd_show() {
else
echo "${path%\/}"
fi
- tree -N -C -l --noreport "$PREFIX/$path" 3>&- | tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g' # remove .gpg at end of line, but keep colors
+ ls -C "$PREFIX/$path" | sed 's/\.gpg/ /g' # remove .gpg at end of filename
elif [[ -z $path ]]; then
die "Error: password store is empty. Try \"pass init\"."
else
@@ -412,9 +412,7 @@ cmd_show() {
cmd_find() {
[[ $# -eq 0 ]] && die "Usage: $PROGRAM $COMMAND pass-names..."
- IFS="," eval 'echo "Search Terms: $*"'
- local terms="*$(printf '%s*|*' "$@")"
- tree -N -C -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX" 3>&- | tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g'
+ die "Error: find is not implemented."
}
cmd_grep() {