update dotfiles
This commit is contained in:
@@ -148,3 +148,14 @@ git_push() {
|
||||
}
|
||||
|
||||
alias gpush="git_push"
|
||||
|
||||
passgen() {
|
||||
length=${1:-"12"}
|
||||
if [[ "$length" == <-> ]]; then
|
||||
echo $(cat /dev/urandom| base64 | head -c "$length")
|
||||
else
|
||||
echo "passgen() takes a positive integer as first argument"
|
||||
echo "got $length"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user