From 99eff755bb77d7dd1de86a60bddf71efcb5ce164 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 13 Nov 2023 09:59:40 +0100 Subject: [PATCH] Fix update command --- nushell/config.nu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nushell/config.nu b/nushell/config.nu index 6f76bd6..b2abf8a 100644 --- a/nushell/config.nu +++ b/nushell/config.nu @@ -135,7 +135,11 @@ def _update_args [] { } def u [arg?: string@_update_args] { - ^update $arg + if $arg == null { + ^update + } else { + ^update $arg + } } # gclone aliases