halostatue/fish-utils-net

July 5, 2026 ยท View on GitHub

Version MIT

Network and SSH utility functions for fish shell. Most have been ported from my zsh dotfiles or from other dotfiles found over the years.

NOTE: The functions in this plugin are of questionable use and security except addr, certp, and def. As such, those three are being released with the next version of halostatue/fish-utils and this plugin is being deprecated and archived.

Installation

Install with Fisher (recommended):

fisher install halostatue/fish-utils-net # fisher 4.0+

System Requirements

Functions

addr

Shows IPv4 and IPv6 addresses for the given interface or all interfaces.

addr

certp

Prints the TLS certificate for the domain provided using OpenSSL.

def

Retrieves the definition for a word from dict.org.

def dictionary

dig1, diga

Shorthand responses from dig.

dig1 google.com
diga google.com

digip

Digs my public IP address.

digip

man.cx

Open one or more manpages at man.cx.

man.cx sshd_config
man.cx 5 ssh_config

ports

Shows processes listening on ports. Options are passed to lsof.

ports

run_from_ssh

Returns true if the current shell was run from SSH.

ssh-copy-id

Copies one or more SSH public key file identities to the ~/.ssh/authorized_keys file of a remote server. This is a fish shell translation of the same script available for bash or zsh.

sshfp

Create the text required for SSHFP DNS records (SSH fingerprint) for a host.

sshnew

Connect to an SSH server as a new connection (StrictHostKeyChecking is off). This should only be used on trusted servers as it skips host key checking. All parameters are passed to ssh.

sshtmp, sftptmp, scptmp

Connect to an SSH server as a temporary connection (StrictHostKeyChecking is off and the host is not written to the SSH hosts file). This should only be used on trusted transient servers (such as CI debug servers) as it skips host key checking. All parameters are passed to ssh, sftp, or scp as appropriate.

License

MIT

Change Log

CHANGELOG

Contributing