pm

barebones password manager
git clone git://git.ckyln.com/~cem/pm.git
Log | Files | Refs | README

pm-add-dmenu (291B)


      1 #!/bin/sh
      2 
      3 name=$(dmenu -p "Give a name to your password" <&-)
      4 pass=" "
      5 
      6 while ! [ "$pass" = "$pass2" ] ; do
      7     pass=$(dmenu -nb black -nf black -p "Enter your password" <&-)
      8     pass2=$(dmenu -nb black -nf black -p "Enter your password again" <&-)
      9 done
     10 
     11 printf '%s' "$pass" | pm a "$name"