added oh-my-ssh back as raw code, not as a submodule.
This commit is contained in:
parent
23fe3ee6d5
commit
f663947bfc
1195 changed files with 126994 additions and 0 deletions
20
.zsh/oh-my-zsh/plugins/deno/README.md
Normal file
20
.zsh/oh-my-zsh/plugins/deno/README.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Deno Plugin
|
||||
|
||||
This plugin sets up completion and aliases for [Deno](https://deno.land).
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Full command |
|
||||
| ----- | ---------------- |
|
||||
| dc | deno compile |
|
||||
| dca | deno cache |
|
||||
| dck | deno check |
|
||||
| dfmt | deno fmt |
|
||||
| dh | deno help |
|
||||
| dli | deno lint |
|
||||
| drn | deno run |
|
||||
| drA | deno run -A |
|
||||
| drw | deno run --watch |
|
||||
| dsv | deno serve |
|
||||
| dts | deno test |
|
||||
| dup | deno upgrade |
|
||||
32
.zsh/oh-my-zsh/plugins/deno/deno.plugin.zsh
Normal file
32
.zsh/oh-my-zsh/plugins/deno/deno.plugin.zsh
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# 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
|
||||
|
||||
zmodload -F zsh/files b:zf_mv
|
||||
() {
|
||||
local TMPPREFIX="$ZSH_CACHE_DIR/completions/._deno"
|
||||
zf_mv -f -- =( deno completions zsh ) "$ZSH_CACHE_DIR/completions/_deno"
|
||||
} &|
|
||||
Loading…
Add table
Add a link
Reference in a new issue