Month: July 2023

  • Storm SSH Alternative for fish Shell

    It seems storm is no longer updated for years. So I found it’s actually really simple to implement Storm SSH’s searching feature via a simple function:

    function sshgrep
      grep -i -E -C 3 $argv ~/.ssh/config.d/*
    end

    Usage:

    ssh grep ixion
    /Users/sparanoid/.ssh/config.d/server-aws.conf-  Port 22
    /Users/sparanoid/.ssh/config.d/server-aws.conf-  User ssh-user
    /Users/sparanoid/.ssh/config.d/server-aws.conf-
    /Users/sparanoid/.ssh/config.d/server-aws.conf:Host ixion
    /Users/sparanoid/.ssh/config.d/signcl-aws.conf-  HostName 11.22.33.44
    /Users/sparanoid/.ssh/config.d/server-aws.conf-  Port 22
    /Users/sparanoid/.ssh/config.d/server-aws.conf-  User ssh-user