From b326eb92d7ab4a49d476764fadb48343c74018af Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 17 Nov 2023 16:26:15 +0100 Subject: [PATCH] def --env --- nushell/config/aliases.nu | 2 +- nushell/config/docker.nu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nushell/config/aliases.nu b/nushell/config/aliases.nu index 4e79b6e..9b8e38a 100644 --- a/nushell/config/aliases.nu +++ b/nushell/config/aliases.nu @@ -82,7 +82,7 @@ alias v = nvim alias :q = exit alias pdf = pueue add evince alias rg = rg -uu -def-env mkcd [dir: string] { mkdir $dir; cd $dir } +def --env mkcd [dir: string] { mkdir $dir; cd $dir } alias pa = pueue add --immediate def pst [] { pueue status -j diff --git a/nushell/config/docker.nu b/nushell/config/docker.nu index b2cdf9c..cd0d664 100644 --- a/nushell/config/docker.nu +++ b/nushell/config/docker.nu @@ -18,7 +18,7 @@ def _kube_kubes [] { _ls ~/.kubes | where type == dir | get name | path basename } -def-env kube [name?: string@_kube_kubes] { +def --env kube [name?: string@_kube_kubes] { use assert let kubes_path = [$env.HOME, .kubes] | path join