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

24 lines
518 B
Fish
Raw Permalink 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
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