nushell/config/ssh.nu

12 lines
206 B
Plaintext
Raw Normal View History

2023-12-22 16:09:35 +00:00
# ssh completion
def _ssh_hosts [] {
open ~/.ssh/config
| lines
| find -ir "host "
| each { $in | split row " " | get 1 }
}
export extern "ssh" [
host?: string@_ssh_hosts
]