From 6b685712464160dc4eadaaf16443878105e3e581 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 19:56:42 +0200 Subject: Link ~/.ssh to ~/.dotfiles/.secrets/ssh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- openssh/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openssh') diff --git a/openssh/Makefile b/openssh/Makefile index ed19c6f..6da1915 100644 --- a/openssh/Makefile +++ b/openssh/Makefile @@ -2,6 +2,13 @@ include ../common.mk install: + if test -L ~/.ssh; then \ + test "$$(readlink -- ~/.ssh)" = ~/.dotfiles/.secrets/ssh; \ + else \ + test ! -e ~/.ssh && \ + ln -sf -- ~/.dotfiles/.secrets/ssh ~/.ssh; \ + fi + mkdir -p -- ../.secrets/ssh mkdir -p -- ~/.config/bash/aliases.d test ! -d ~/.config/bash/aliases.d/openssh ln -sf -- ~/.dotfiles/openssh/bash-aliases ~/.config/bash/aliases.d/openssh -- cgit v1.2.3-70-g09d2