nushell funcs
This commit is contained in:
parent
fd6a225dc4
commit
ee260bfd5b
1 changed files with 9 additions and 7 deletions
|
|
@ -13,17 +13,19 @@ def l [
|
||||||
path?
|
path?
|
||||||
flags?
|
flags?
|
||||||
] {
|
] {
|
||||||
if $path == null {
|
if $path {
|
||||||
# ls $flags
|
|
||||||
ls
|
|
||||||
} else {
|
|
||||||
# ls $flags $path
|
|
||||||
ls $path
|
ls $path
|
||||||
|
} else {
|
||||||
|
ls
|
||||||
} | sort-by type name -i
|
} | sort-by type name -i
|
||||||
}
|
}
|
||||||
|
|
||||||
def tse [exit_node] {
|
def tse [exit_node?] {
|
||||||
tailscale set --exit-node=$exit_node
|
if exit_node {
|
||||||
|
tailscale set --exit-node $exit_node
|
||||||
|
} else {
|
||||||
|
tailscale set --exit-node=""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def rb [] {
|
def rb [] {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue