<div dir="ltr">Ryan, <div><br></div><div>As I alluded to in the p.s: pass uses the tree for the "pass ls" command</div><div><br></div><div>From tree's man page  (found: <a href="http://linux.die.net/man/1/tree">http://linux.die.net/man/1/tree</a>)</div>
<div><br></div><div>You can use the "-n" flag to disable color. By dong something like:</div><div><br></div><div>alias tree="tree -n"</div><div><br></div><div>However, as of version 1.6 of pass, pass specifies the "-C" flag which overrides the -n flag</div>
<div><br></div><div>Because of this you are going to have to manually patch pass. Find the line that has tree and remove the flag. Something like this:</div><div><br></div><div><br></div><div><div>diff --git a/src/password-store.sh b/src/password-store.sh</div>
<div>index e68384b..6a475e1 100755</div><div>--- a/src/password-store.sh</div><div>+++ b/src/password-store.sh</div><div>@@ -322,7 +322,7 @@ cmd_show() {</div><div>                else</div><div>                        echo "${path%\/}"</div>
<div>                fi</div><div>-               tree -C -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//'</div><div>+               tree -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//'</div>
<div>        elif [[ -z $path ]]; then</div><div>                die "Error: password store is empty. Try \"pass init\"."</div><div>        else</div><div>@@ -334,7 +334,7 @@ cmd_find() {</div><div>        [[ -z "$@" ]] && die "Usage: $PROGRAM $COMMAND pass-names..."</div>
<div>        IFS="," eval 'echo "Search Terms: $*"'</div><div>        local terms="*$(printf '%s*|*' "$@")"</div><div>-       tree -C -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX" | tail -n +2 | sed 's/\.gpg$//'</div>
<div>+       tree -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX" | tail -n +2 | sed 's/\.gpg$//'</div><div> }</div><div> </div><div> cmd_grep() {</div></div><div><br>
</div><div><br></div><div>Paul</div><div><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 11:33 AM, Ryan Delaney <span dir="ltr"><<a href="mailto:ryan.delaney@gmail.com" target="_blank">ryan.delaney@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">> On Thu, Jun 26, 2014 at 7:29 AM, Klaus Birkelund Jensen <kbj@libsys.so><br>

> wrote:<br>
><br>
> > Hi all,<br>
> ><br>
> > Is it possible to disable the colors from the output?<br>
> ><br>
> > --<br>
> ><br>
> >  Klaus,<br>
> >    unexceptional communication since 1985<br>
> ><br>
> > _______________________________________________<br>
> > Password-Store mailing list<br>
> > <a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
> > <a href="http://lists.zx2c4.com/mailman/listinfo/password-store" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
> ><br>
> ><br>
</div><div class="">On Thu, Jun 26, 2014 at 10:07:40AM -0400, Paul Schwendenman wrote:<br>
> Which pass functions are you seeing color?<br>
><br>
> If you are using pass with git, you can turn off the colors provided by git<br>
> by running:<br>
><br>
> pass git config color.ui false<br>
><br>
> If you want git apply this setting to all repositories:<br>
><br>
> git config --global color.ui false<br>
><br>
> Hope this helps,<br>
> Paul<br>
><br>
> P.S Git was the only command in my install that produced color output. Tree<br>
> (used by "pass ls") also has a color option, but I believe that is not<br>
> enabled by default.<br>
><br>
><br>
<br>
</div>Paul,<br>
<br>
I am also getting color output by default from 'pass ls', not just the git<br>
commands. I suspect it may have something to do with dircolors?<br>
<br>
Regardless, I've been wishing for a --porcelain output from pass as well.  I am<br>
working on a wrapper script that uses password-store and jshon to provide some<br>
extended functionality that I needed. Having output that I could parse more<br>
easily would make this sort of task much easier.<br>
<span class=""><font color="#888888"><br>
--<br>
Regards,<br>
Ryan Delaney<br>
</font></span></blockquote></div><br></div></div>