Update SSH configuration to use XDG directories

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-09-09 17:17:59 +02:00
parent 5769f2f8e3
commit 5d2adad235
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 19 additions and 0 deletions

2
.gitignore vendored
View file

@ -55,3 +55,5 @@ system/.config/phpstorm/config/options/web-types-registry.xml
system/.config/phpstorm/config/options/vcs.xml system/.config/phpstorm/config/options/vcs.xml
system/.config/phpstorm/config/options/notifications.xml system/.config/phpstorm/config/options/notifications.xml
system/.config/mpd/database system/.config/mpd/database
*id_rsa*

View file

@ -69,6 +69,7 @@ LINKED_FILES_HOME=(
".config/redshift" ".config/redshift"
".config/sqlite3" ".config/sqlite3"
".config/streamlink" ".config/streamlink"
".config/ssh"
".config/sxhkd" ".config/sxhkd"
".config/topgrade.toml" ".config/topgrade.toml"
".config/Trolltech.conf" ".config/Trolltech.conf"

View file

@ -0,0 +1,2 @@
Host *
IdentityFile /home/severin/.config/ssh/id_rsa

14
system/.local/bin/ssh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# ssh
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Wrapper script for ssh to use XDG directories
#
# USAGE:
# ./svn
"/usr/bin/ssh" -F "${XDG_CONFIG_HOME}/ssh/config" "${@}"