summaryrefslogtreecommitdiff
path: root/src/password-store.sh (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-09-13Split out common gpg options into variable.Jason A. Donenfeld1-6/+7
Reported-by: Brian Mattern <rephorm@rephorm.com>
2012-09-13use gpg --batch for quieter outputBrian Mattern1-3/+3
Right now, every time I call pass to decrypt a key, I get output like: You need a passphrase to unlock the secret key for user: "User Name <user@domain.com>" 2048-bit ELG-E key, ID XXXXXXNX, created 2012-04-20 (main key ID NNXXNNNX) password This patch cleans it up so that only the password is output. I use pinentry-gtk-2 to enter the gpg passphrase, so this information is redundant to me. I haven't tried other pinentry versions to see if they repeat the information as well.
2012-09-13add edit command to zsh completionBrian Mattern1-1/+8
2012-09-13Skip directories in zsh completionBrian Mattern1-1/+1
this allows the full entry to be completed with a single tab if there is only one entry in a folder e.g., given: amazon.com user at domain.com google.com user1 user2 `pass am<tab>` -> `pass amazon.com/user at domain.com` while `pass goo<tab>` -> `pass google.com/` (previously, the amazon completion would have stopped at amazon.com despite only a single entry existing)
2012-09-13prevent <ctrl-c> on password entry from wiping out fileBrian Mattern1-2/+2
Currently, if you hit ctrl-c at the standard 'Enter password' prompt, since it is piped directly to gpg, the entry gets cleared. Trying to read from that entry results in: gpg: [don't know]: 1st length byte missing This patch fixes this. Tweaked by Jason A. Donenfeld <Jason@zx2c4.com> to add GNU readline features by using -e in read.
2012-09-13Confirm before overwriting an entryBrian Mattern1-1/+8
This asks before inserting a password when one already exists at that location (instead of just overwriting it).
2012-09-13Use bash's read command better.Jason A. Donenfeld1-14/+8
2012-09-13Add --version switch, per request.Jason A. Donenfeld2-4/+23
2012-09-13Be more careful about cleaning up.Jason A. Donenfeld1-6/+4
2012-09-12Use getopt to regularize optionsBrian Mattern2-27/+36
I like being able to specify command line options (like -c) at the end of the line (which is usually when I think of the fact that I need them). The attached patch uses getopt(1) to regularize the option list so that lazy people like me can specify the options in any order.
2012-09-12Don't quote ${EDITOR:-vi}rupa1-1/+1
Attached is a trivial patch that removes the quotes from the line that invokes $EDITOR. It's perfectly cromulent to set $EDITOR to something with spaces in it, so when we evaluate this one we want it evaluated bare. For example security nerds might want EDITOR='vim -n' if they are scared of swap files, and that breaks if we quote there.
2012-09-12Use PASSWORD_STORE_DIR environment variable if it is set.Jason A. Donenfeld2-4/+5
A user made this request: I was wondering whether it is in a planning to have multiple password-store directory trees or possible to achieve? eg. $HOME/.pwd-store-work and $HOME/.pwd-store-home. Maybe distinguish them with a command line switch and then create aliases in .bash_aliases? Why I'm asking is that I have multiple major password categories - personal, work etc. It'll be nice to keep them separate and under different repos. Reported-by: Simon KP <si@eskp.net>
2012-09-11Use portable mktemp.1.2.1Jason A. Donenfeld1-3/+4
Only GNU systems have --tmpdir, so for other systems we use the TMPDIR environment variable. Reported-by: Alexis <surryhill@gmail.com>
2012-09-11Fix inconsistent indentation in usage messageDmitry Medvinsky1-1/+1
2012-09-11Fix makefile and use proper manpage hyperlinks.Jason A. Donenfeld2-2/+10
2012-09-11Bump debian version.1.2Jason A. Donenfeld1-1/+1
2012-09-11Add an edit mode that uses $EDITOR.Jason A. Donenfeld2-23/+80
This allows users to edit password files using temporary files created in /dev/shm. This commit also tidies other things up and fixes minor bugs and griviences that should be separate commits but aren't. Reported-by: rupa <rupa@lrrr.us>
2012-09-11default to 'show' command for zsh completionBrian Mattern1-0/+1
this allows completing password entries without explicitly typing 'show'
2012-09-10Modifying zsh completion to work with OS X home dir location and sedDavid Michael1-1/+1
2012-09-08Only copy the first line of the password file to the clipboard.Jason A. Donenfeld2-3/+3
2012-09-08Move completion files to contrib.1.1.4Jason A. Donenfeld3-2/+2
2012-09-08Import ZSH completion file from Johan Venant <jvenant@invicem.pro>.Jason A. Donenfeld3-1/+75
2012-09-08More info in INSTALL.Jason A. Donenfeld1-0/+9
2012-09-08Simplify README.Jason A. Donenfeld1-17/+2
2012-09-08Fedora wants the whole license in COPYING.Jason A. Donenfeld1-12/+352
2012-09-07Update FSF address, add copyrights.1.1.3Jason A. Donenfeld4-21/+26
2012-09-07Bump debian to 1.1.3.Jason A. Donenfeld1-1/+1
2012-09-07Explicitly set permissions when running 'install'Christophe Fergeau1-3/+3
The default permissions set by 'install' are 0755 which is not what we want for manpages and the bash completion file.
2012-09-07No need for a shebang in bash completion fileChristophe Fergeau1-1/+1
It's meant to be source, so no need for it to start with #!/bin/bash rpmlint complains about this.
2012-09-06Update COPYING to reflect man page and project page.1.1.2Jason A. Donenfeld1-10/+11
2012-09-06Use BINDIR, MANDIR and SYSCONFDIR vars in MakefileChristophe Fergeau1-5/+8
This commit introduces these variables, and defaults to using the same values as the ones that were used before. The advantage of doing this is to make it easier to use some distro-specific layout. When this is desirable, these variables can be overridden to what is appropriate at package build time.
2012-09-06Add dependencies to README.Jason A. Donenfeld1-0/+8
2012-09-06Change debian name.Jason A. Donenfeld5-5/+4
2012-09-06Use more normal sleep variant.1.1.1Jason A. Donenfeld1-1/+1
2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1
Reported-by: Theo Belaire <tbelaire@uwaterloo.ca>
2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2
2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2
2012-09-04No echo mode.Jason A. Donenfeld2-16/+42
Add a --no-echo flag to the insert operation so that the password isn't echoed when entering it. This requires the user to echo the password twice for confirmation. Reported-by: Dominic Lüchinger <d.luechinger@snowgarden.ch>
2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1
2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1
This also prevents showing the second <word> of the password in the prompt.
2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14
2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60
2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1
2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1
2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224
2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173
2012-09-03Support pass gitJason A. Donenfeld2-1/+15
2012-08-31Add remove synonyms.Jason A. Donenfeld1-2/+2
2012-08-31Use basename in usage.Jason A. Donenfeld1-2/+1
2012-08-19now using gpg_id as a varMatthew Ramirez1-2/+2