git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.waterfox
diff options
context:
space:
mode:2022-03-23 13:29:09 +0100
committermail_redacted_for_web 2022-03-23 13:29:09 +0100
commit3a6624030d1d6407982204e2769222e1bd064942 (patch)
tree9afc4a3c50b612a215e1d3b0c80a7ab12b69007f /.waterfox
parent947ad9638a1607e751eddfaab37d5eed369326eb (diff)
downloaddotfiles-3a6624030d1d6407982204e2769222e1bd064942.tar.bz2
alias for ssh-with-gpg
Diffstat (limited to '.waterfox')
0 files changed, 0 insertions, 0 deletions
: #00aa00; text-decoration: underline } /* Name.Class */ .highlight .no { color: #aa0000 } /* Name.Constant */ .highlight .nd { color: #888888 } /* Name.Decorator */ .highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ .highlight .nf { color: #00aa00 } /* Name.Function */ .highlight .nn { color: #00aaaa; text-decoration: underline } /* Name.Namespace */ .highlight .nt { color: #1e90ff; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #aa0000 } /* Name.Variable */ .highlight .ow { color: #0000aa } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #009999 } /* Literal.Number.Bin */ .highlight .mf { color: #009999 } /* Literal.Number.Float */ .highlight .mh { color: #009999 } /* Literal.Number.Hex */ .highlight .mi { color: #009999 } /* Literal.Number.Integer */ .highlight .mo { color: #009999 } /* Literal.Number.Oct */ .highlight .sa { color: #aa5500 } /* Literal.String.Affix */ .highlight .sb { color: #aa5500 } /* Literal.String.Backtick */ .highlight .sc { color: #aa5500 } /* Literal.String.Char */ .highlight .dl { color: #aa5500 } /* Literal.String.Delimiter */ .highlight .sd { color: #aa5500 } /* Literal.String.Doc */ .highlight .s2 { color: #aa5500 } /* Literal.String.Double */ .highlight .se { color: #aa5500 } /* Literal.String.Escape */ .highlight .sh { color: #aa5500 } /* Literal.String.Heredoc */ .highlight .si { color: #aa5500 } /* Literal.String.Interpol */ .highlight .sx { color: #aa5500 } /* Literal.String.Other */ .highlight .sr { color: #009999 } /* Literal.String.Regex */ .highlight .s1 { color: #aa5500 } /* Literal.String.Single */ .highlight .ss { color: #0000aa } /* Literal.String.Symbol */ .highlight .bp { color: #00aaaa } /* Name.Builtin.Pseudo */ .highlight .fm { color: #00aa00 } /* Name.Function.Magic */ .highlight .vc { color: #aa0000 } /* Name.Variable.Class */ .highlight .vg { color: #aa0000 } /* Name.Variable.Global */ .highlight .vi { color: #aa0000 } /* Name.Variable.Instance */ .highlight .vm { color: #aa0000 } /* Name.Variable.Magic */ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
#!/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
		if ! pgrep -au "$(id -u)" dirmngr >/dev/null;then
			gpg-connect-agent --dirmngr /bye 2>/dev/null
			gpg --list-secret-keys >/dev/null 2>&1
		fi
	fi
fi

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