From 7e529362470125102f60354d6938154363c4e21d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 2 Mar 2021 22:23:10 -0500 Subject: support VISUAL in preference to EDITOR --- src/bin/rbw/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/bin/rbw') diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs index badff67..4380372 100644 --- a/src/bin/rbw/main.rs +++ b/src/bin/rbw/main.rs @@ -74,8 +74,8 @@ enum Opt { long_about = "Add a new password to the database\n\n\ This command will open a text editor to enter \ the password and notes. The editor to use is determined \ - by the value of the $EDITOR environment variable. The \ - first line will be saved as the password and the \ + by the value of the $VISUAL or $EDITOR environment variables. + The first line will be saved as the password and the \ remainder will be saved as a note." )] Add { @@ -156,8 +156,8 @@ enum Opt { This command will open a text editor with the existing \ password and notes of the given entry for editing. \ The editor to use is determined by the value of the \ - $EDITOR environment variable. The first line will be \ - saved as the password and the remainder will be saved \ + $VISUAL or $EDITOR environment variables. The first line \ + will be saved as the password and the remainder will be saved \ as a note." )] Edit { -- cgit v1.2.3-54-g00ecf