From 6f6b189b6c4067ca3c4f919fc9abd128a1310e13 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 11 Sep 2014 09:32:02 +0300 Subject: [PATCH] bashrc & zshrc: add apg-random alias to generate random passwords with small letters, capital letters and numbers of specified length. --- bashrc | 6 ++++++ zshrc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/bashrc b/bashrc index 053f6a8b..343a6b46 100644 --- a/bashrc +++ b/bashrc @@ -564,6 +564,12 @@ alias pypypip=pippypy alias pypypip2=pippypy2 alias pypypip3=pippypy3 +# apg with small letters, capital letters and numbers. I don't usually use +# special characters as they sometimes have difficulties with some systems +# and cross-platform operating systems. +# Usage: apt-random +alias apg-random="apg -a1 -M LCN -m" + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 6bd2f900..26cd9517 100644 --- a/zshrc +++ b/zshrc @@ -534,6 +534,12 @@ alias pypypip=pippypy alias pypypip2=pippypy2 alias pypypip3=pippypy3 +# apg with small letters, capital letters and numbers. I don't usually use +# special characters as they sometimes have difficulties with some systems +# and cross-platform operating systems. +# Usage: apt-random +alias apg-random="apg -a1 -M LCN -m" + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases