aboutsummaryrefslogtreecommitdiffstats
path: root/openssh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--openssh/Makefile7
1 files changed, 7 insertions, 0 deletions
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