ansible/roles/batcave/files/root_bashrc

32 lines
786 B
Text
Raw Normal View History

# .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
2017-10-12 16:28:23 +00:00
# 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"
echo "ssh-add /srv/privatekeys/ssh/fedora-admin-20130801.private"
fi
fi
fi