diff options
-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 |