1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-03 07:37:47 +00:00
Commit graph

7 commits

Author SHA1 Message Date
Darren Schroeder
32cdc96414
replace filter with where (#1135)
This PR tries to clean up the use of `filter` by replacing it with
`where`. I did not test each script.

closes #1134
closes #1133
2025-06-12 06:42:16 -05:00
Dan Michael O. Heggø
e732b79ce2
Fix ssh-completions when there's no includes (#1065)
The ssh-completion didn't work when I first tried to source it. Turned
out that `reduce` failed when `$includes` was an empty list:

```nushell
$includes | par-each {|p| $p | open --raw | process } | reduce {|it| merge deep $it --strategy=append }
```

The change proposed in this PR fixes the problem so the completion also
works if there are no includes in the ssh config files. I'm a total
nushell beginner though, so I'm not sure if it's the best or the most
idiomatic way to solve the problem :)
2025-03-08 16:38:17 -06:00
Nguyễn Hồng Quân
1da73cf106
Add compatibility note about Nu version (#1057)
This is my response for #1051 

The syntax of this note is inspired by Rust _Cargo.toml_ and Python
_pyproject.toml_.
2025-02-24 06:27:50 -06:00
Nguyễn Hồng Quân
446f06f34f
Improve SSH completion speed (#1050)
In my machine, the SSH host definitions are spread over many files and
the old implementation is slow to give auto-complete.
This PR is to improve the speed.
2025-02-17 05:33:44 -06:00
Nguyễn Hồng Quân
8c21f6e5a6
Follow Include to extract more SSH hosts (#993)
Sometimes, we have so many SSH servers that divide to extra config files
and include in *~/.ssh/config*

This PR follow the `Include` directive to retrieve more hosts.

Example of such config:

```ssh_config
Include extra/agriconnect
Include "extra/Old servers"
```

This PR also fix an issue that orginal code grabs this:

```ssh_config
Host *
```
2024-12-14 06:49:27 -06:00
denny
1533149826
Fix: SSH config may not contain hostname (#893)
I am sorry. I assumed that an SSH host in the config file must contain a
hostname, but this assumption is not true.

If a user reads an SSH host that doesn't contain a hostname, it will
fail to parse.
2024-07-11 10:26:04 -05:00
denny
bfd2af7106
Add ssh completion (#891)
Read ssh config from `/etc/ssh/ssh_config` and `~/.ssh/config`.

Given: 
![螢幕擷取畫面 2024-07-09
232722](https://github.com/nushell/nu_scripts/assets/5771562/9294efd7-42c0-4a6c-9dac-06a6a87f67c5)

Will show:

![螢幕擷取畫面 2024-07-09
232640](https://github.com/nushell/nu_scripts/assets/5771562/a8e3844b-ac91-417b-a973-c31366ae1460)
2024-07-10 08:26:11 -05:00