Did I Improve ThisBlogAbout

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:

  1. List the passwords paths
$ pass
Password Store
├── databases
│   ├── db_name
│   │   ├── staging
│   │   │   ├── username
│   │   ├── prod
│   │   │   ├── username

  1. See a password
$ pass show databases/db_name/staging/username
thisisatopsecretpassword

  1. 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.

  1. 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:

  1. Terminal Base Setup
  2. Tmux - terminal multiplexer
  3. NeoVim - text editor
  4. Jrnl - note app

5. Pass - password manager

  1. Ranger - file manager
  2. Simple Terminal Apps
  3. Terminal Aliases