mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
add gebug plugin
This commit is contained in:
parent
efcbd9f348
commit
2a99e472e1
2 changed files with 24 additions and 0 deletions
10
plugins/gebug/README.md
Normal file
10
plugins/gebug/README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Gebug plugin
|
||||
|
||||
This plugin adds completion for [Gebug](https://github.com/moshebe/gebug), the tool that make debugging of Dockerized Go applications super easy by enabling Debugger and Hot-Reload features.
|
||||
|
||||
To use it, add `gebug` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... gebug)
|
||||
```
|
||||
|
14
plugins/gebug/gebug.plugin.zsh
Normal file
14
plugins/gebug/gebug.plugin.zsh
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Autocompletion for Gebug.
|
||||
#
|
||||
if (( $+commands[gebug] )); then
|
||||
__GEBUG_COMPLETION_FILE="${ZSH_CACHE_DIR}/gebug_completion"
|
||||
|
||||
if [[ ! -f $__GEBUG_COMPLETION_FILE ]]; then
|
||||
gebug completion zsh >! $__GEBUG_COMPLETION_FILE
|
||||
fi
|
||||
|
||||
[[ -f $__GEBUG_COMPLETION_FILE ]] && source $__GEBUG_COMPLETION_FILE
|
||||
|
||||
unset __GEBUG_COMPLETION_FILE
|
||||
fi
|
||||
|
Loading…
Reference in a new issue