diff --git a/README.md b/README.md index a24af11..2627c04 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ This prints your 12-word recovery phrase **once**. Write it down: it is the only way to get your identity and listings back if the machine is lost (`allmende recover`). Keys and the database live in the data directory, `~/.local/share/allmende` by default (change it with `--data ` or the -`ALLMENDE_DATA` environment variable). `bin/allmende init --copy` also copies the +`ALLMENDE_DATA` environment variable). Besides the numbered list, `init` prints the +words as one plain line you can triple-click and paste. `bin/allmende init --copy` also copies the words to the clipboard as one line (via `wl-copy`, `xclip`, `xsel` or `pbcopy`, or your terminal over SSH): paste them into a password manager, then clear the clipboard. diff --git a/cmd/allmende/init.go b/cmd/allmende/init.go index 20f809b..a493a6d 100644 --- a/cmd/allmende/init.go +++ b/cmd/allmende/init.go @@ -87,7 +87,9 @@ or share them. fmt.Printf(" %2d. %-12s %2d. %-12s %2d. %-12s\n", i+1, words[i], i+2, words[i+1], i+3, words[i+2]) } - fmt.Println() + // The table pastes badly (numbers, columns). One plain line can be selected + // with a triple click and pasted into a password manager or 'allmende recover'. + fmt.Printf("\nTo copy: select the line below (triple-click) and paste it where you keep it.\n\n%s\n\n", strings.Join(words, " ")) } // confirmPhrase asks for two random words so the user has really written