diff options
Diffstat (limited to 'ayu')
-rwxr-xr-x | ayu | 4 |
1 files changed, 2 insertions, 2 deletions
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) |