Skip to content

Instantly share code, notes, and snippets.

@KlausTrainer
Last active September 2, 2016 16:13
Show Gist options
  • Save KlausTrainer/2d2d75cc022df29ad2f72e72b411a699 to your computer and use it in GitHub Desktop.
Save KlausTrainer/2d2d75cc022df29ad2f72e72b411a699 to your computer and use it in GitHub Desktop.
#!/bin/sh
PASSWORD_FILE="$HOME/.pw/passwords.gpg"
gpg -d $PASSWORD_FILE | perl -ne "if (/^$1: (.*)$/) { print \$1 }" | xclip -selection clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment