# install gpg-agent
sudo apt install gpg-agent

# install latest gopass
# TODO: change to latest version
# curl -s https://api.github.com/repos/gopasspw/gopass/releases/latest | jq -r '.assets[] | select (.name | test ("linux_amd64.deb")) | .browser_download_url'
wget https://github.com/gopasspw/gopass/releases/download/v1.15.13/gopass_1.15.13_linux_amd64.deb
sudo dpkg -i gopass_1.15.13_linux_amd64.deb
rm gopass_1.15.13_linux_amd64.deb
gopass completion bash > /usr/share/bash-completion/completions/gopass

# enable linger for user
read -p "Username: " linger_username
sudo loginctl enable-linger "${linger_username}"