diff options
author | Justin Gassner <justin.gassner@mailbox.org> | 2022-01-19 17:26:19 +0100 |
---|---|---|
committer | Justin Gassner <justin.gassner@mailbox.org> | 2023-12-05 18:11:31 +0100 |
commit | e85315b89f05a8ec43e72daed96dad966f8da958 (patch) | |
tree | ac12d216f9d9745d5a3563aa56ce183114444d90 /src | |
parent | b5e965a838bb68c1227caa2cdd874ba496f10149 (diff) | |
download | pass-e85315b89f05a8ec43e72daed96dad966f8da958.tar.zst |
Use ls instead of treeno-tree
Diffstat (limited to 'src')
-rwxr-xr-x | src/password-store.sh | 6 |
1 files changed, 2 insertions, 4 deletions
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() { |