PortValhalla/scripts/Arch/Software/openssh/main.fish

24 lines
520 B
Fish
Raw Normal View History

2024-07-15 10:10:06 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
yayinst \
openssh \
libfido2
end
function configureSW
systemctl --global enable --now ssh-agent
and begin
2024-07-15 10:10:06 +00:00
printf %s\n \
"#!/bin/bash" \
'export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"'
end | sudo tee "/etc/profile.d/openssh.sh" > /dev/null
end
runInstaller $argv
end