Skip to content

Instantly share code, notes, and snippets.

@ssledz
Last active August 28, 2019 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssledz/381817d5591340fcd4b1256ac258071a to your computer and use it in GitHub Desktop.
Save ssledz/381817d5591340fcd4b1256ac258071a to your computer and use it in GitHub Desktop.

How do I get ssh-agent to work in all terminals?

export SSH_AUTH_SOCK=~/.ssh/ssh-agent.$HOSTNAME.sock
ssh-add -l 2>/dev/null >/dev/null
if [ $? -ge 2 ]; then
  ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null
fi

How do I configure the search domain correctly?

# /etc/systemd/resolved.conf
[Resolve]
DNS=X.Y.Z.W
Domains=x.y.z.pl
service systemd-resolved restart 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment