31 lines
786 B
Text
31 lines
786 B
Text
# .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"
|
|
echo "ssh-add /srv/privatekeys/ssh/fedora-admin-20130801.private"
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
|