Files
fedora-infra_ansible/roles/batcave/files/root_bashrc
Kevin Fenzi ce6f0346a9 batcave: drop mention of old openstack keypair
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2022-02-16 16:20:51 -08:00

31 lines
711 B
Plaintext

# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# ssh completion
complete -W "$(grep -d skip -h ^[a-z].*.org /srv/web/infra/ansible/inventory/* )" ssh >&/dev/null
if [ -f /root/sshagent ]; then
source /root/sshagent >>/dev/null
working=`ps $SSH_AGENT_PID`
if [ "$?" != 0 ]; then
if [ ${TERM} != "dumb" ]; then
echo "No ssh-agent running, you will need to run one:"
echo "ssh-agent -s > /root/sshagent"
echo "source /root/sshagent"
echo "ssh-add /srv/privatekeys/ssh/ansible_root.private"
fi
fi
fi