nixos-config/modules/mullvad/mullvad-fzf.sh

3 lines
122 B
Bash
Executable file

#!/usr/bin/env bash
mullvad $(find /etc/wireguard -name "mlv-*.conf" -printf "%f\n" | sed 's/mlv-\(.*\)\.conf/\1/' | fzf)