Added mkpasswd command
This commit is contained in:
parent
15b8412d76
commit
c26007ebbc
1 changed files with 6 additions and 0 deletions
6
zshrc
6
zshrc
|
@ -31,6 +31,12 @@ runfor() {
|
|||
done
|
||||
}
|
||||
|
||||
mkpasswd() {
|
||||
LEN=${1:-30}
|
||||
cat /dev/urandom | base64 | head -n 1 | cut -c -$LEN
|
||||
}
|
||||
|
||||
|
||||
export EDITOR="vim"
|
||||
|
||||
# Load any local only zshrc
|
||||
|
|
Loading…
Reference in a new issue