aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 032a438..1f6971c 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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