m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/password-store.sh
AgeCommit message (Collapse)Author
2012-09-13Use bash's read command better.Jason A. Donenfeld
2012-09-13Add --version switch, per request.Jason A. Donenfeld
2012-09-13Be more careful about cleaning up.Jason A. Donenfeld
2012-09-12Use getopt to regularize optionsBrian Mattern
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}rupa
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. Donenfeld
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.Jason A. Donenfeld
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 Medvinsky
2012-09-11Add an edit mode that uses $EDITOR.Jason A. Donenfeld
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-08Only copy the first line of the password file to the clipboard.Jason A. Donenfeld
2012-09-07Update FSF address, add copyrights.Jason A. Donenfeld
2012-09-06Use more normal sleep variant.Jason A. Donenfeld
2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld
Reported-by: Theo Belaire <tbelaire@uwaterloo.ca>
2012-09-04No echo mode.Jason A. Donenfeld
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. Donenfeld
2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa
This also prevents showing the second <word> of the password in the prompt.
2012-09-03Show program name properly in error message.Jason A. Donenfeld
2012-09-03Move examples into manpage.Jason A. Donenfeld
2012-09-03Make into a real project.Jason A. Donenfeld