diff --git a/dot_zsh_aliases b/dot_zsh_aliases index dcd3ba7..adf066e 100644 --- a/dot_zsh_aliases +++ b/dot_zsh_aliases @@ -73,9 +73,9 @@ alias m='mgmt' alias tunnel='ssh -D 8000 -N $(whoami)@$PROXY_HOST -i ~/.ssh/id_ed25519' alias sshpub='cat ~/.ssh/id_ed25519.pub' alias ssla="openssl x509 -alias -noout -in" # Usage : ssla - alias encrypt='ansible-vault encrypt **/vault.yml --vault-password-file=~/.vaultpass' alias decrypt='ansible-vault decrypt **/vault.yml --vault-password-file=~/.vaultpass' +alias newpass='bw generate --special --uppercase --lowercase --number --length 30' # Network alias ip='echo $(curl ident.me -4 2>/dev/null)' diff --git a/dot_zsh_functions b/dot_zsh_functions index 0515b16..f8bc0f4 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -279,6 +279,12 @@ function jenkins-cli { local script_location=$(find $HOME/code/jenkins-cloudbees-core -name "jenkins-cli.sh") eval "$script_location $*" } +function passwords { + bw list items --search "$1" | jq -c '.[] | .name + " " + .login.username + ":" + .login.password + " " + .login.uris[0].uri' +} +function password { + bw get password "$1" +} function colorpic { local picture_url="$1" echo "Colorizing $picture_url"