Completion for u

This commit is contained in:
Thomas Forgione 2023-11-08 14:39:39 +01:00
parent 9546f459f3
commit 82a15a3303
1 changed files with 21 additions and 1 deletions

View File

@ -160,6 +160,27 @@ export extern "ssh" [
host?: string@_ssh_hosts 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 # gclone aliases
def _gclone_dirs [] { def _gclone_dirs [] {
let slashes = ($env.GCLONE_PATH | split row "/" | length) + 2 let slashes = ($env.GCLONE_PATH | split row "/" | length) + 2
@ -219,7 +240,6 @@ alias kns = k9s
# Useful aliases # Useful aliases
alias :q = exit alias :q = exit
alias pdf = evince alias pdf = evince
alias u = ^update
alias rg = rg -uu alias rg = rg -uu
alias p = pass alias p = pass
alias pc = pass --clip alias pc = pass --clip