mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
upgrade to 0.91 (#776)
update argx.nu, docker.nu, git-v2.nu, kubernetes.nu, ssh.nu, and nvim.nu to support 0.91 syntax. --------- Co-authored-by: nash <nash@iffy.me>
This commit is contained in:
parent
351691f118
commit
0fd766871f
6 changed files with 39 additions and 27 deletions
|
@ -32,7 +32,7 @@
|
|||
def nvim_tcd [] {
|
||||
[
|
||||
{|before, after|
|
||||
if not ($env.NVIM? | is-empty) {
|
||||
if ($env.NVIM? | is-not-empty) {
|
||||
nvim --headless --noplugin --server $env.NVIM --remote-send $"<cmd>lua HookPwdChanged\('($after)', '($before)')<cr>"
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ export def nvc [
|
|||
neovide: [--maximized --server $addr]
|
||||
}
|
||||
for g in ($gs | transpose prog args) {
|
||||
if not (which $g.prog | is-empty) {
|
||||
if (which $g.prog | is-not-empty) {
|
||||
^$g.prog ...$g.args
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue