repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
nushell/tests/fixtures/legacy-work-scope.nu
Raw# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "bun" [...args] {
let command = "bun"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "pi" [...args] {
let command = "pi"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "codex" [...args] {
let command = "codex"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "claude" [...args] {
let command = "claude"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "herdr" [...args] {
let command = "herdr"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "topgrade" [...args] {
let command = "topgrade"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "mise" [...args] {
let command = "mise"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "npm" [...args] {
let command = "npm"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "cargo" [...args] {
let command = "cargo"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "go" [...args] {
let command = "go"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "zig" [...args] {
let command = "zig"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "just" [...args] {
let command = "just"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "make" [...args] {
let command = "make"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "mvn" [...args] {
let command = "mvn"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "mvnd" [...args] {
let command = "mvnd"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "gradle" [...args] {
let command = "gradle"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}
# generated by work_scope.nu; edit work_scope.nuon instead
@complete external
def --wrapped "node" [...args] {
let command = "node"
let slice = "work.slice"
if $nu.os-info.family == "unix" and (which systemd-run | is-not-empty) {
^systemd-run --user --scope --same-dir --collect --quiet $"--slice=($slice)" $command ...$args
} else {
run-external $command ...$args
}
}