Ryan, As I alluded to in the p.s: pass uses the tree for the "pass ls" command
>From tree's man page (found: http://linux.die.net/man/1/tree) You can use the "-n" flag to disable color. By dong something like: alias tree="tree -n" However, as of version 1.6 of pass, pass specifies the "-C" flag which overrides the -n flag 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: diff --git a/src/password-store.sh b/src/password-store.sh index e68384b..6a475e1 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -322,7 +322,7 @@ cmd_show() { else echo "${path%\/}" fi - tree -C -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//' + tree -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//' elif [[ -z $path ]]; then die "Error: password store is empty. Try \"pass init\"." else @@ -334,7 +334,7 @@ cmd_find() { [[ -z "$@" ]] && die "Usage: $PROGRAM $COMMAND pass-names..." IFS="," eval 'echo "Search Terms: $*"' local terms="*$(printf '%s*|*' "$@")" - tree -C -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX" | tail -n +2 | sed 's/\.gpg$//' + tree -l --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case "$PREFIX" | tail -n +2 | sed 's/\.gpg$//' } cmd_grep() { Paul On Thu, Jun 26, 2014 at 11:33 AM, Ryan Delaney <[email protected]> wrote: > > On Thu, Jun 26, 2014 at 7:29 AM, Klaus Birkelund Jensen <[email protected]> > > wrote: > > > > > Hi all, > > > > > > Is it possible to disable the colors from the output? > > > > > > -- > > > > > > Klaus, > > > unexceptional communication since 1985 > > > > > > _______________________________________________ > > > Password-Store mailing list > > > [email protected] > > > http://lists.zx2c4.com/mailman/listinfo/password-store > > > > > > > On Thu, Jun 26, 2014 at 10:07:40AM -0400, Paul Schwendenman wrote: > > Which pass functions are you seeing color? > > > > If you are using pass with git, you can turn off the colors provided by > git > > by running: > > > > pass git config color.ui false > > > > If you want git apply this setting to all repositories: > > > > git config --global color.ui false > > > > Hope this helps, > > Paul > > > > P.S Git was the only command in my install that produced color output. > Tree > > (used by "pass ls") also has a color option, but I believe that is not > > enabled by default. > > > > > > Paul, > > I am also getting color output by default from 'pass ls', not just the git > commands. I suspect it may have something to do with dircolors? > > Regardless, I've been wishing for a --porcelain output from pass as well. > I am > working on a wrapper script that uses password-store and jshon to provide > some > extended functionality that I needed. Having output that I could parse more > easily would make this sort of task much easier. > > -- > Regards, > Ryan Delaney >
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
