Files
ohmyzsh/plugins/deno/deno.plugin.zsh
ANDI FAUZAN HEDIANTORO 5181447da8 fix(deno): remove deprecated aliases and add modern ones (#13796)
- Remove  alias for  (deprecated in Deno 1.x, removed
  in Deno 2.0)
- Remove  alias for  (the --unstable flag
  has been deprecated in favor of granular --unstable-* flags)
- Add  alias for  (type-check without running)
- Add  alias for  (HTTP server introduced in Deno 1.37)
- Update README to reflect changes
2026-06-12 10:39:09 -07:00

29 lines
686 B
Bash

# ALIASES
alias dc='deno compile'
alias dca='deno cache'
alias dck='deno check'
alias dfmt='deno fmt'
alias dh='deno help'
alias dli='deno lint'
alias drn='deno run'
alias drA='deno run -A'
alias drw='deno run --watch'
alias dsv='deno serve'
alias dts='deno test'
alias dup='deno upgrade'
# COMPLETION FUNCTION
if (( ! $+commands[deno] )); then
return
fi
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `deno`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_deno" ]]; then
typeset -g -A _comps
autoload -Uz _deno
_comps[deno]=_deno
fi
deno completions zsh >| "$ZSH_CACHE_DIR/completions/_deno" &|