diff --git a/.gitmodules b/.gitmodules index a218b18..5cb21ac 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule ".config/tmux/plugins/tmux"] path = .config/tmux/plugins/tmux url = https://github.com/catppuccin/tmux +[submodule "ssh-gen"] + path = ssh-gen + url = https://git.simonis.lol/projects/ssh-generator.git diff --git a/scripts/install b/scripts/install index 57edeb5..882924f 100755 --- a/scripts/install +++ b/scripts/install @@ -26,7 +26,9 @@ $APT_CMD install -yqq \ btop \ stow \ tmux \ - dos2unix + dos2unix \ + python3 \ + python3-yaml if [ ! -d "$HOME/.oh-my-zsh" ]; then echo @@ -39,11 +41,6 @@ if [ -f "$HOME/.zshrc" ] && [ ! -L "$HOME/.zshrc" ]; then rm "$HOME/.zshrc" fi -mkdir -p "$HOME/.ssh" -if ! grep -Fxq "Include ~/.config/ssh/*" "$HOME/.ssh/config" 2>/dev/null; then - echo "Include ~/.config/ssh/*" >> "$HOME/.ssh/config" -fi - if [ -f "./.git/hooks/post-merge" ]; then rm "./.git/hooks/post-merge" fi diff --git a/scripts/setup b/scripts/setup index fbf77fc..7fd0c6a 100755 --- a/scripts/setup +++ b/scripts/setup @@ -25,3 +25,9 @@ echo "[+] Creating symlinks..." echo stow . + +echo +echo "[+] Creating SSH config..." +echo + +python3 ssh-gen/src/main.py --config=ssh-gen/conf.yaml diff --git a/ssh-gen b/ssh-gen new file mode 160000 index 0000000..1ebb971 --- /dev/null +++ b/ssh-gen @@ -0,0 +1 @@ +Subproject commit 1ebb9719c6e8768a630b1de8043c699d01de4382