aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorLenz Weber <mail@lenzw.de>2014-09-21 21:31:05 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-12-23 19:38:21 -0700
commitc34d172ec14b06de82c04eecf86af66cd26379d6 (patch)
treef0b14b08cbf6dd4f22db617e037604b15d7875ec /src/password-store.sh
parentplatform: find getopt in alternate osx locations (diff)
downloadpassword-store-c34d172ec14b06de82c04eecf86af66cd26379d6.tar.xz
password-store-c34d172ec14b06de82c04eecf86af66cd26379d6.zip
tree listing: remove .gpg at the end, but keep bash colorzing
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index c85cc33..7cf560c 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -332,7 +332,7 @@ cmd_show() {
else
echo "${path%\/}"
fi
- tree -C -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//'
+ tree -C -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg\(\x1B\[[0-9]\+m\)\{0,1\}$/\1/' # remove .gpg at end of line, but keep colors
elif [[ -z $path ]]; then
die "Error: password store is empty. Try \"pass init\"."
else