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