From 8c848c2517336ecb39d561a9e4b5dde80739bbf7 Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Thu, 2 Oct 2014 21:46:53 +0200 Subject: [PATCH] Added makepass function --- bash_profile | 6 ++++++ zshrc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/bash_profile b/bash_profile index 914ade7..69512ac 100644 --- a/bash_profile +++ b/bash_profile @@ -60,6 +60,12 @@ extract(){ fi } + +makepass(){ + cat /dev/urandom | base64 | head -c 20 + echo '' +} + mcd(){ mkdir -p $1 cd $1 diff --git a/zshrc b/zshrc index 86c2380..66b9ac9 100644 --- a/zshrc +++ b/zshrc @@ -129,6 +129,12 @@ save_dotfiles(){ cp ~/.zshrc ${DOTPATH}zshrc } + +makepass(){ + cat /dev/urandom | base64 | head -c 20 + echo '' +} + upgrade () { if [ ! $1 ] ; then print "local upgrade"