commit 6a262820871d6bcabb70e372d657cbb6fad83bd7
parent fb3d35fa5fd4a91e71030750e95bd68b67c786ae
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Thu, 6 Oct 2016 22:34:13 +0200
TODOs
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/xpass b/xpass
@@ -21,7 +21,7 @@ export PINENTRY_USER_DATA="gtk"
cd ~/.password-store
# my-rofi is just a dmenu wrapper
-
+# TODO adapt depending on whether it exists or not
RET=$(ls *.gpg | sed 's/\.gpg$//' | ~/bin/my-rofi)
if [ -z "$RET" ]
then
@@ -33,6 +33,8 @@ USER=$(echo "$RET" | awk '{print $2}')
if [ ! -f "${FILE}.gpg" ]
then
# file does not exist, create password
+ # TODO ask for confirmation
+ # TODO don't save login if not specified
# also save anything specified on the commandline to the file
echo "generate"
echo -e "will be replaced by password\nlogin: $USER" | pass add -m "$FILE" || {