Skip to content

Instantly share code, notes, and snippets.

View codesections's full-sized avatar

Daniel Sockwell codesections

View GitHub Profile
@codesections
codesections / pass-new.sh
Created June 1, 2018 16:22
Simple shell script to use hsxkpasswd with pass
#!/bin/bash
NEWPASSWORD=$(hsxkpasswd)
if [[ $1 ]]; then
echo -e "$NEWPASSWORD\n$NEWPASSWORD" | pass insert $1
else
echo "Usage: pass-new <pass-name>"
fi