dots


dots / config / .local / bin
xxwhirlpool  ·  2026-04-07

sfzf

1#!/usr/bin/env bash
2#
3# https://kaeruct.github.io/posts/2024/10/10/ssh-config-hostnames/
4
5server=$(grep -E '^Host ' ~/.ssh/config | awk '{print $2}' | sort -n | fzf)
6
7[[ -n "$server" ]]; ssh "$server" || exit 1