From 12cdffa40fc945e025c589ddce28c193c07edf7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=BCndel?= Date: Sun, 14 Sep 2025 14:57:36 +0200 Subject: [PATCH] install SSH Agent via service menu --- bin/omarchy-install-ssh-agent | 30 ++++++++++++++++++++++++++++++ bin/omarchy-menu | 1 + 2 files changed, 31 insertions(+) create mode 100644 bin/omarchy-install-ssh-agent diff --git a/bin/omarchy-install-ssh-agent b/bin/omarchy-install-ssh-agent new file mode 100644 index 00000000..4756d905 --- /dev/null +++ b/bin/omarchy-install-ssh-agent @@ -0,0 +1,30 @@ +#!/bin/bash + +# add ssh keys to ssh-agent +mkdir -p ~/.ssh +echo 'AddKeysToAgent yes' | tee -a ~/.ssh/config >/dev/null + +# Create systemd service for ssh-agent +mkdir -p ~/.config/systemd/user +tee ~/.config/systemd/user/ssh-agent.service >/dev/null </dev/null + +# Start ssh-agent automatically for user +systemctl enable --user ssh-agent.service + +echo 'SSH Agent has been installed and enabled. Please reboot to apply changes.' \ No newline at end of file diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 7245e1d4..aaafac7e 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -221,6 +221,7 @@ show_install_service_menu() { *Dropbox*) present_terminal omarchy-install-dropbox ;; *Tailscale*) present_terminal omarchy-install-tailscale ;; *Bitwarden*) install_and_launch "Bitwarden" "bitwarden bitwarden-cli" "bitwarden" ;; + *SSH Agent*) present_terminal omarchy-install-ssh-agent ;; *) show_install_menu ;; esac }