New function
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
### Ansible ###
|
||||
source /etc/profile.d/shadowarch-shell-environment.sh
|
||||
export ANSIBLE_VAULT_PASSWORD_FILE=$HOME/password-store/${organization}.vault.password
|
||||
export ANSIBLE_VAULT_FILE=$HOME/password-store/${organization}.vault
|
||||
export ANSIBLE_VAULT_PASSWORD_FILE="${ANSIBLE_VAULT_FILE}.password"
|
||||
alias ansible='/usr/bin/ansible -e @${ANSIBLE_VAULT_FILE}'
|
||||
alias ansible-playbook='/usr/bin/ansible-playbook -e @${ANSIBLE_VAULT_FILE}'
|
||||
alias vault='/usr/bin/ansible-vault edit ${ANSIBLE_VAULT_FILE}'
|
||||
|
||||
@@ -13,6 +13,16 @@ if [ -n "$SSH_AUTH_SOCK" ] && [ `ssh-add -L | grep -c no\ identities` -eq 1 ]; t
|
||||
ssh-add
|
||||
ssh-add -L
|
||||
fi
|
||||
function verify-ssh-pubkeys() {
|
||||
printf Keyfiles\
|
||||
ls -1 ~/.ssh/*.pub | wc -l
|
||||
wc -l ~/.ssh/authorized_keys
|
||||
for i in ~/.ssh/*.pub; do
|
||||
key=`cut -f 3 -d " " "$i"`
|
||||
printf "%s: " "$i"
|
||||
grep -c "$key" ~/.ssh/authorized_keys
|
||||
done
|
||||
}
|
||||
|
||||
### GIT ###
|
||||
source /usr/share/git/completion/git-prompt.sh
|
||||
|
||||
Reference in New Issue
Block a user