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

24 lines
514 B
Fish
Raw Permalink Normal View History

2024-07-15 10:10:06 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../lib/software.fish"
2024-07-15 10:10:06 +00:00
function installSW
yayinst \
openssh \
libfido2
end
function configureSW
sudo systemctl --global enable ssh-agent
2024-07-15 10:10:06 +00:00
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"'
2024-10-06 19:25:34 +00:00
end | sudo tee "/etc/profile.d/openssh.sh" >/dev/null
2024-07-15 10:10:06 +00:00
end
runInstaller $argv
end