Compare commits

...

2 commits

Author SHA1 Message Date
Tao Tien
9ea29fce3f dcokrkK 2026-05-13 08:34:56 -07:00
Tao Tien
34130fbec5 ts 2026-05-13 08:34:56 -07:00
3 changed files with 10 additions and 2 deletions

View file

@ -0,0 +1,7 @@
export def "nu-complete docker start" [] {
docker ps --all --format json | from json --objects | select Names Image | rename value description
}
export extern "docker start" [
...recipe: string@"nu-complete docker start"
]

View file

@ -12,6 +12,7 @@ use tailscale.nu *
source completions-jj.nu
source completions-just.nu
source completions-docker.nu
# External completer example
# let carapace_completer = {|spans|

View file

@ -13,7 +13,7 @@ export def check-mullvad [] {
}
# switch to a specific exit node, or none
export def te [exit_node: string = ""] {
export def te [exit_node: string = "", -n] {
if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) {
print "stop summoning first!"
return false
@ -21,7 +21,7 @@ export def te [exit_node: string = ""] {
tailscale set --exit-node $exit_node
if ($exit_node | is-not-empty) {
if ($exit_node | is-not-empty) or not $n {
check-mullvad
} else {
print "exit node set"