about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--README8
-rwxr-xr-xayu4
2 files changed, 3 insertions, 9 deletions
diff --git a/README b/README
index 00509b7..64cd948 100644
--- a/README
+++ b/README
@@ -2,13 +2,7 @@ ayu
 ===
 
 Not-so standard unix password manager, written in (mostly) posix shell
-
-Dependencies
-------------
-
-- age
-- tree
-
+Uses <https://age-encryption.org> as back-end, and tree(1) to list contents of the password store
 
 Caveats
 -------
diff --git a/ayu b/ayu
index ffd51e1..8bcfb43 100755
--- a/ayu
+++ b/ayu
@@ -17,13 +17,13 @@ EDITOR=${EDITOR:-vi}
 test -d $ayu_dir || mkdir -p $ayu_dir
 test -d $ayu_store || mkdir -p $ayu_store
 
-
 if ! [ -f $ayu_key ];then
 	printf "First generate your own age(1) key with age-keygen(1) and place it as $ayu_key. \n"
 	printf "e.g: age-keygen -o $ayu_key and public key should be on $ayu_pub \n"
 	exit 1
 fi
 
+cd $ayu_store || exit 1
 
 edit() {
 	age --decrypt --identity=$ayu_key --output=${1%%.age} ${1%%.age}.age
@@ -67,7 +67,7 @@ view() {
 	fi
 }
 case $1 in
-	edit)
+	edit | ed)
 		edit $2
 		;;
 	list | ls)