dotfiles/nushell/config/ssh.nu

12 lines
206 B
Plaintext
Raw Normal View History

2023-11-13 09:59:32 +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
]