From d8fadfd14b48747e3343f3cb6805ba70586db393 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 14 May 2012 21:30:46 -0400 Subject: [PATCH] modifying the quickpwgen alias to be more portable. --- .zsh/aliases.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/aliases.zsh b/.zsh/aliases.zsh index 2b953f7..213d805 100644 --- a/.zsh/aliases.zsh +++ b/.zsh/aliases.zsh @@ -4,4 +4,4 @@ alias myip="wget -qO- ifconfig.me/ip" alias memoryhog="ps aux | sort -nk +4 | tail" alias stripext="ls -1 | sed 's/\(.*\)\..*/\1/'" alias macgen="openssl rand -hex 6 | sed 's/\(..\)/\1:/g;s/../00/;s/.$//' | tr '[a-z]' '[A-Z]'" -alias quickpwgen="curl -s https://www.grc.com/passwords.htm | grep '63 random alpha-numeric characters' | html2text | tail -n 1" +alias quickpwgen="tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1"