summaryrefslogtreecommitdiffstats
path: root/.bin/ssh-personal
blob: e99764c3afc7dd5d01ccaf8fecd866452e9e2b23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Used for work laptop.
# Add personal key and start the ssh-agent with it.

set -xe

ssh_personal_key="${HOME}/.ssh/id_personal"

test -f "${ssh_personal_key}"

eval "$(ssh-agent)"
ssh-add "${ssh_personal_key}"

set +xe
remember that computers suck.