bash alias: Fix password generation
This commit is contained in:
parent
45de81964c
commit
71443941b4
@ -48,7 +48,7 @@ function mpcf() {
|
|||||||
}
|
}
|
||||||
# genere un password aleatoire
|
# genere un password aleatoire
|
||||||
randpw(){
|
randpw(){
|
||||||
LC_CTYPE=C < /dev/urandom tr -dc '[:graph:]' | head -c${1:-10}
|
strings /dev/urandom | grep -o '[[:graph:]]' | head -n 20 | tr -d '\n'
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
alias ssh_dev='ssh dev -t bin/tmux_rattach.sh'
|
alias ssh_dev='ssh dev -t bin/tmux_rattach.sh'
|
||||||
|
Loading…
Reference in New Issue
Block a user