From c26007ebbcdf518b5f0f3babcb87de10e086be6e Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 16 Jun 2015 16:18:49 +0200 Subject: [PATCH] Added mkpasswd command --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshrc b/zshrc index aea49ee..c506be2 100644 --- a/zshrc +++ b/zshrc @@ -31,6 +31,12 @@ runfor() { done } +mkpasswd() { + LEN=${1:-30} + cat /dev/urandom | base64 | head -n 1 | cut -c -$LEN +} + + export EDITOR="vim" # Load any local only zshrc