about summary refs log tree commit diff stats
path: root/ayu
diff options
context:
space:
mode:
Diffstat (limited to 'ayu')
-rwxr-xr-xayu8
1 files changed, 4 insertions, 4 deletions
diff --git a/ayu b/ayu
index bc10594..719f037 100755
--- a/ayu
+++ b/ayu
@@ -3,14 +3,14 @@
 # ayu(1) - an actually boring password manager, which uses age(1) as backend.
 
 # Path to the program's directory
-ayu_dir="$HOME/.config/ayu"
+ayu_dir="${ayu_dir:-~/.config/ayu}"
 
 # Path to the password store
-ayu_store="$HOME/.ayu"
+ayu_store="${ayu_store:-/.ayu}"
 
 # Path to the age(1) keys
-ayu_key="$ayu_dir/age.key"
-ayu_pub="$ayu_store/.age-id"
+ayu_key="${ayu_key:-${ayu_dir}/sec.age}"
+ayu_pub="${ayu_pub:-${ayu_dir}/pub.age}"
 
 EDITOR=${EDITOR:-vi}