diff options
-rw-r--r-- | README | 2 | ||||
-rwxr-xr-x | src/password-store.sh | 6 |
2 files changed, 2 insertions, 6 deletions
@@ -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() { |