Pass - password manager
09 July, 2020 - 1 min
I use pass to store some passwords at work, so I don't have those typical unprotected text files with all the database credentials. Its interface is quite simple to use.
Some use cases:
- List the passwords paths
 
$ pass
Password Store
├── databases
│   ├── db_name
│   │   ├── staging
│   │   │   ├── username
│   │   ├── prod
│   │   │   ├── username- See a password
 
$ pass show databases/db_name/staging/username
thisisatopsecretpassword- Copy a password to the clipboard
 
$ pass show --clip databases/db_name/staging/username
Copied databases/db_name/staging/username to clipboard. Will clear in 45 seconds.
- Use a password on a bash script
 
#!/usr/bin/env bash
...
api_password=$(pass show --clip service_a/api/password)
...
Thanks for reading!
Vicente
A list of articles in the series Terminal Workflow:
- Terminal Base Setup
 - Tmux - terminal multiplexer
 - NeoVim - text editor
 - Jrnl - note app
 
5. Pass - password manager
- Ranger - file manager
 - Simple Terminal Apps
 - Terminal Aliases