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 }