diff options
author | katherine <shmibs@shmibbles.me> | 2018-11-27 02:18:18 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2018-11-27 02:18:18 -0700 |
commit | cdec2892d55031d870b3402dc810e20592689686 (patch) | |
tree | d03abebebb3e7d9802fcf3bcc2ebbd39cf263c6d | |
parent | 7dee2a8d748d3f41d6c5104170bf109a1b5ab505 (diff) | |
download | dotfiles-cdec2892d55031d870b3402dc810e20592689686.tar.gz |
add function for easier pass gen
-rw-r--r-- | .zshrc | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -172,7 +172,7 @@ fi ################## FUNCTIONS ################## -# ignore non-tracked files +# ignore non-tracked files && keep submods current if [[ ! -z $(whence git) ]] then git() { case $1 in @@ -183,6 +183,14 @@ git() { } fi +# password generation +if [[ ! -z $(whence pwgen) ]] then +pwgen() { + [[ ${#@} -eq 0 ]] && $(whence -p pwgen) -snc 20 1 && return 0 + $(whence -p pwgen) -snc $@ 1 +} +fi + ################# OS SPECIFIC ################# case $(uname) in |