torrent/nushell/plugins/port_list.nu
2024-01-13 13:01:54 +03:00

11 lines
269 B
Plaintext

# https://github.com/FMotalleb/nu_plugin_port_list
run_once 'nu_plugin_port_list' {
cargo install nu_plugin_port_list
register ~/.cargo/bin/nu_plugin_port_list
}
port list -4 -t | where state == LISTEN | select [pid,local_port ] | sort-by local_port