From 1ed1bb1028731b74bbd9737aa38dc0c69bf62858 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pierre=20Pe=CC=81ronnet?= <pierre.peronnet@gmail.com>
Date: Wed, 11 Jul 2018 22:57:56 +0200
Subject: [PATCH] MINOR Print non-printable character on password list
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Files path containing non printable characters (like emojis 🏠)
are now displayed as is.
So you can now manage emojified file path
---
 src/password-store.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/password-store.sh b/src/password-store.sh
index 715dc93..f3a2751 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -381,7 +381,7 @@ cmd_show() {
 		else
 			echo "${path%\/}"
 		fi
-		tree -C -l --noreport "$PREFIX/$path" | tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g' # remove .gpg at end of line, but keep colors
+		tree -NC -l --noreport "$PREFIX/$path" | tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g' # remove .gpg at end of line, but keep colors
 	elif [[ -z $path ]]; then
 		die "Error: password store is empty. Try \"pass init\"."
 	else
-- 
2.14.3 (Apple Git-98)

