git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/exec.bash
blob: 24b3ee9a4a1030359b584f56c0a10437682c654a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# vim:syntax=sh
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
set bell-style visible

# start ssh agent. this script will not try to run a new instance
# (unless we specified -f, which we don't).
if echo "${SSHAGH[ _æ_ ]}" | grep -F --word-regexp "$(hostname -f)" > /dev/null;then
	# do not launch from SSH session, conflicts with user logging on locally afterwards
	if [ -z "$SSH_TTY" ];then
		"$HOME/bin/ssh-agent-launcher" -q
		gpg-connect-agent --dirmngr /bye
	fi
fi

# because on some hosts the login path is fucked, unset in .local
# if it causes irritation:
cd ~ || cd || exit 151