aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw-agent/actions.rs
diff options
context:
space:
mode:
authorSkia <fjacquet@tetrane.com>2022-05-30 17:14:31 +0200
committerSkia <florent.jacquet@eshard.com>2022-11-07 11:05:11 +0100
commitd4453cb44a10f9bb558fd2a5561cc5223ba36a23 (patch)
tree269601c655cde17bab93536c200b88ee07d43268 /src/bin/rbw-agent/actions.rs
parent1e56f733275cdd1406a4d796d17dbcbf48432a66 (diff)
downloadrbw-d4453cb44a10f9bb558fd2a5561cc5223ba36a23.tar.gz
rbw-d4453cb44a10f9bb558fd2a5561cc5223ba36a23.zip
Support multiple profiles with an environment variable
This introduces the `RBW_PROFILE` environment variable to be able to run multiple instances in parallel, that will use different configuration paths. To use this feature, simply run `rbw` with the environment variable set to any string that is valid for a path. Setting it to an empty string is like not setting it at all. e.g.: * `RBW_PROFILE=perso rbw list` * `RBW_PROFILE=pro rbw list`
Diffstat (limited to 'src/bin/rbw-agent/actions.rs')
-rw-r--r--src/bin/rbw-agent/actions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/rbw-agent/actions.rs b/src/bin/rbw-agent/actions.rs
index 87a8276..61eb74b 100644
--- a/src/bin/rbw-agent/actions.rs
+++ b/src/bin/rbw-agent/actions.rs
@@ -367,7 +367,7 @@ pub async fn unlock(
let password = rbw::pinentry::getpin(
&config_pinentry().await?,
"Master Password",
- "Unlock the local database",
+ &format!("Unlock the local database for '{}'", rbw::dirs::profile()),
err.as_deref(),
tty,
true,