From 82a15a33030ab4d5cbf34170448ccb97fbea5712 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 8 Nov 2023 14:39:39 +0100 Subject: [PATCH] Completion for u --- nushell/config.nu | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/nushell/config.nu b/nushell/config.nu index f5a49a5..0bfd22a 100644 --- a/nushell/config.nu +++ b/nushell/config.nu @@ -160,6 +160,27 @@ export extern "ssh" [ host?: string@_ssh_hosts ] +# update completion +def _update_args [] { + [ + system + rust + wasm + npm + dotfiles + neovim + check + startup + last-update + postpone + force-unlock + ] +} + +def u [arg?: string@_update_args] { + ^update $arg +} + # gclone aliases def _gclone_dirs [] { let slashes = ($env.GCLONE_PATH | split row "/" | length) + 2 @@ -219,7 +240,6 @@ alias kns = k9s # Useful aliases alias :q = exit alias pdf = evince -alias u = ^update alias rg = rg -uu alias p = pass alias pc = pass --clip