Bash: New password generator.
This commit is contained in:
parent
7c336e56b6
commit
a23fab9d65
@ -81,7 +81,7 @@ alias get="curl -O"
|
|||||||
alias dos2unix="perl -pi -e 's/\r\n?/\n/g'"
|
alias dos2unix="perl -pi -e 's/\r\n?/\n/g'"
|
||||||
|
|
||||||
# Password generator
|
# Password generator
|
||||||
password() { openssl rand -base64 ${1:-8}; }
|
password() { cat /dev/urandom | tr -dc A-Za-z0-9_ | head -c ${1:-10}; }
|
||||||
|
|
||||||
# Show $PATH in a readable way
|
# Show $PATH in a readable way
|
||||||
alias path='echo -e ${PATH//:/\\n}'
|
alias path='echo -e ${PATH//:/\\n}'
|
||||||
|
Loading…
Reference in New Issue
Block a user