add bitwarden security aliases

This commit is contained in:
MorganGeek 2020-06-24 15:21:13 +02:00
parent 9e5c369133
commit 409b3695f8
2 changed files with 7 additions and 1 deletions

View File

@ -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 <cert>
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)'

View File

@ -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"