Compare commits
No commits in common. "9ea29fce3ff17155b5ac9ba1df097f772236e886" and "58b1aa984f7f25b3766bcf92b2ed36dd0b466b4f" have entirely different histories.
9ea29fce3f
...
58b1aa984f
3 changed files with 2 additions and 10 deletions
|
|
@ -1,7 +0,0 @@
|
|||
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"
|
||||
]
|
||||
|
|
@ -12,7 +12,6 @@ use tailscale.nu *
|
|||
|
||||
source completions-jj.nu
|
||||
source completions-just.nu
|
||||
source completions-docker.nu
|
||||
|
||||
# External completer example
|
||||
# let carapace_completer = {|spans|
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export def check-mullvad [] {
|
|||
}
|
||||
|
||||
# switch to a specific exit node, or none
|
||||
export def te [exit_node: string = "", -n] {
|
||||
export def te [exit_node: string = ""] {
|
||||
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 = "", -n] {
|
|||
|
||||
tailscale set --exit-node $exit_node
|
||||
|
||||
if ($exit_node | is-not-empty) or not $n {
|
||||
if ($exit_node | is-not-empty) {
|
||||
check-mullvad
|
||||
} else {
|
||||
print "exit node set"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue