feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
40
api.hyungi.net/node_modules/pm2/lib/completion.sh
generated
vendored
Normal file
40
api.hyungi.net/node_modules/pm2/lib/completion.sh
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
###-begin-pm2-completion-###
|
||||
### credits to npm for the completion file model
|
||||
#
|
||||
# Installation: pm2 completion >> ~/.bashrc (or ~/.zshrc)
|
||||
#
|
||||
|
||||
COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
|
||||
COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
|
||||
export COMP_WORDBREAKS
|
||||
|
||||
if type complete &>/dev/null; then
|
||||
_pm2_completion () {
|
||||
local si="$IFS"
|
||||
IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
|
||||
COMP_LINE="$COMP_LINE" \
|
||||
COMP_POINT="$COMP_POINT" \
|
||||
pm2 completion -- "${COMP_WORDS[@]}" \
|
||||
2>/dev/null)) || return $?
|
||||
IFS="$si"
|
||||
}
|
||||
complete -o default -F _pm2_completion pm2
|
||||
elif type compctl &>/dev/null; then
|
||||
_pm2_completion () {
|
||||
local cword line point words si
|
||||
read -Ac words
|
||||
read -cn cword
|
||||
let cword-=1
|
||||
read -l line
|
||||
read -ln point
|
||||
si="$IFS"
|
||||
IFS=$'\n' reply=($(COMP_CWORD="$cword" \
|
||||
COMP_LINE="$line" \
|
||||
COMP_POINT="$point" \
|
||||
pm2 completion -- "${words[@]}" \
|
||||
2>/dev/null)) || return $?
|
||||
IFS="$si"
|
||||
}
|
||||
compctl -K _pm2_completion + -f + pm2
|
||||
fi
|
||||
###-end-pm2-completion-###
|
||||
Reference in New Issue
Block a user