nu fixes
This commit is contained in:
parent
a34a37b45b
commit
4ae2d653e8
3 changed files with 9 additions and 3 deletions
|
|
@ -85,4 +85,4 @@ $env.GOPATH = '/home/tao/.go'
|
||||||
|
|
||||||
# $env.CARAPACE_BRIDGES
|
# $env.CARAPACE_BRIDGES
|
||||||
mkdir ~/.cache/carapace
|
mkdir ~/.cache/carapace
|
||||||
carapace _carapace nushell | save -f ~/.cache/carapace/init.nu
|
# carapace _carapace nushell | save -f ~/.cache/carapace/init.nu
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,10 @@ alias js = jj status
|
||||||
alias jw = jj workspace update-stale
|
alias jw = jj workspace update-stale
|
||||||
|
|
||||||
def jm [-r: string = "@"] {
|
def jm [-r: string = "@"] {
|
||||||
|
mut r = $r
|
||||||
|
if (jj log -r @ --no-pager --no-graph --template 'if(empty,"empty")' | $in == "empty") {
|
||||||
|
$r = "@-"
|
||||||
|
}
|
||||||
jj bookmark set main -r $r
|
jj bookmark set main -r $r
|
||||||
jj git push
|
jj git push
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,11 @@ def tse [exit_node: string = ""] {
|
||||||
# list all mullvad exit nodes
|
# list all mullvad exit nodes
|
||||||
def tsx [] {
|
def tsx [] {
|
||||||
tailscale exit-node list
|
tailscale exit-node list
|
||||||
| detect columns --guess
|
| lines
|
||||||
| drop 3
|
| drop 4
|
||||||
| skip 1
|
| skip 1
|
||||||
|
| to text
|
||||||
|
| detect columns --guess
|
||||||
| where HOSTNAME =~ mullvad
|
| where HOSTNAME =~ mullvad
|
||||||
| reject STATUS
|
| reject STATUS
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue