From 90f57b304da81ce68c51bd0cd6ad0fe624e725e4 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 24 Feb 2020 06:37:45 -0700 Subject: [PATCH] Remove passgen --- .zshrc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.zshrc b/.zshrc index 21f67d5..55954d2 100644 --- a/.zshrc +++ b/.zshrc @@ -49,25 +49,6 @@ if [[ -f "$HOME/work.zsh" ]]; then source "$HOME/work.zsh" fi -function passgen () { - local len="$1" - local lower="$2" - - echo "$len" | grep -qE '^[0-9]+$' - if (( $? )); then - len=32 - fi - - local result=`cat /dev/urandom | base64 | tr -d "\n" | head -c "$len"` - if [[ "$lower" = "true" ]]; then - local tr1="[:upper:]" - local tr2="[:lower:]" - result=`echo "$result" | tr "$tr1" "$tr2"` - fi - - echo -n "$result" -} - function weather() { local loc=$1 if [[ -z "$loc" ]]; then