.bashrc
(2025-08-31)
# .bashrc
# User specific aliases and functions
#if [ "$DOTBASHRC" ]; then
# exit
#fi
#export DOTBASHRC="1"
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias git-pull-master='git fetch upstream ; git merge upstream/master ; git push'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
alias fuck='sudo $(history -p \!\!)'
# https://superuser.com/questions/180148/how-do-you-get-screen-to-automatically-connect-to-the-current-ssh-agent-when-re
if [ -S "$SSH_AUTH_SOCK" ] && [ ! -h "$SSH_AUTH_SOCK" ]; then
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/agent/$(hostname)_ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/agent/$(hostname)_ssh_auth_sock