git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/postexec.bash
blob: 61378148e01285a3b498b77af31adb3fe4b29747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare -x SSH_AUTH_SOCK SSH_AGENT_PID
if [ -n "$SSHENVFILE" ] && [ -r "$SSHENVFILE" ];then
	if source "$SSHENVFILE"; then
		if echo "${SSHAGH[ _æ_ ]}"|tr ' ' '\n'|grep -P "^$(hostname -f)$" > /dev/null;then
			add-sshagent-init
		fi
	fi
fi
for gitpsrc in "/usr/share/git/git-prompt.sh" "/usr/local/share/git/git-prompt.sh" \
	"/usr/share/git-completion/prompt.sh" "/usr/local/share/git-completion/prompt.sh"; do
	if [ -r "$gitpsrc" ]; then
		source "$gitpsrc"
		break
	fi
done