Hacker News new | ask | show | jobs
by zmmmmm 1460 days ago
thanks

just tried it out with unix pass which is what I use mostly and somewhat understandably it didn't manage to stop it recording it in the clipboard history. Not sure how well it can work with pure terminal apps like that.

1 comments

ok - replying to myself - defining a function to overlay the normal pass command can work around it like this:

    function pass() {                                           
        defaults write org.p0deje.Maccy ignoreEvents true ;
        sleep 1;
        /opt/local/bin/pass -c "$@" ;
        echo "Copied password to clipboard for $*";
        sleep 1;
        defaults write org.p0deje.Maccy ignoreEvents false;
    }
I think this might work ok!