| 1 | # pass tail |
| 2 | |
| 3 | An extension for the [password store](https://www.passwordstore.org/) that allows to display and edit password meta data without displaying the password itself to bystanders. |
| 4 | |
| 5 | [password store](https://www.passwordstore.org/) proposes a format to store meta data in the password file. The password is stored in the first line followed by data like the URL, username and other meta data in the following lines. A common password file would look like this: |
| 6 | ``` |
| 7 | Yw|ZSNH!}z"6{ym9pI |
| 8 | URL: *.amazon.com/* |
| 9 | Username: [email protected] |
| 10 | ``` |
| 11 | |
| 12 | A common use case is to copy the first line, the password, using `pass show -c <password file>`. |
| 13 | |
| 14 | The meta data usually cannot be copied but needs to be displayed as it contains type and value. |
| 15 | |
| 16 | ## pass tail |
| 17 | |
| 18 | `pass tail <password file>` displays the whole password file except for the first line. This allows to inspect the meta data on the console without displaying the password in plain text: |
| 19 | |
| 20 | ``` |
| 21 | URL: *.amazon.com/* |
| 22 | Username: [email protected] |
| 23 | ``` |
| 24 | |
| 25 | ## pass tailedit |
| 26 | |
| 27 | `pass tailedit <password file>` opens the password file in the editor omitting the first line. When saving the first line is prepended. |
| 28 | |
| 29 | ## Installation |
| 30 | |
| 31 | - Enable password-store extensions by setting ``PASSWORD_STORE_ENABLE_EXTENSIONS=true`` |
| 32 | - ``make install`` |
| 33 | - alternatively add `tail.bash` and `tailedit.bash` to your extension folder (by default at `~/.password-store/.extensions`) |
| 34 | |
| 35 | ## Completion |
| 36 | |
| 37 | This extensions comes with the extension bash completion support added with password-store version 1.7.3 |
| 38 | |
| 39 | When installed, bash completion is already installed. Alternatively source `completion/pass-tail.bash.completion` |
| 40 | |
| 41 | fish and zsh completion are not available, feel free to contribute. |
| 42 | |
| 43 | For bash completion prior to password-store 1.7.3 see [old documentation](https://github.com/palortoff/pass-extension-tail/blob/42c6a182fd4c2b68be21af0dc6ed40fda188da12/README.md) |
| 44 | |
| 45 | ## Contribution |
| 46 | |
| 47 | Contributions are always welcome. |