[pass] [PATCH 2/4] Alias "set" to "insert".

Chris Down chris at chrisdown.name
Fri Sep 13 07:50:33 CEST 2013


I find myself typing "set" rather than "insert" almost every single time. I do
not find "insert" to be intuitive since pass does not use a row-based database.
---
 src/password-store.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/password-store.sh b/src/password-store.sh
index b96dcd0..b6a13a2 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -38,7 +38,7 @@ Usage:
     $program [show] [--clip,-c] pass-name
         Show existing password and optionally put it on the clipboard.
         If put on the clipboard, it will be cleared in 45 seconds.
-    $program insert [--echo,-e | --multiline,-m] [--force,-f] pass-name
+    $program (insert | set) [--echo,-e | --multiline,-m] [--force,-f] pass-name
         Insert new password. Optionally, echo the password back to the console
         during entry. Or, optionally, the entry may be multiline. Prompt before
         overwriting existing password unless forced.
@@ -63,7 +63,7 @@ _EOF
 }
 is_command() {
 	case "$1" in
-		init|ls|list|show|insert|edit|generate|remove|rm|delete|git|help|--help|version|--version) return 0 ;;
+		init|ls|list|show|insert|set|edit|generate|remove|rm|delete|git|help|--help|version|--version) return 0 ;;
 		*) return 1 ;;
 	esac
 }
@@ -228,7 +228,7 @@ case "$command" in
 			exit 1
 		fi
 		;;
-	insert)
+	insert|set)
 		multiline=0
 		noecho=1
 		force=0
--
1.8.4



More information about the Password-Store mailing list