nuscripts/plugins/port_list.nu

11 lines
269 B
Plaintext
Raw Normal View History

2024-01-13 10:50:06 +00:00
# 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