39 lines
768 B
Bash
Executable File
39 lines
768 B
Bash
Executable File
#!/bin/bash
|
|
# fait la completion automatique pour des script fait maison ;)
|
|
|
|
cmpt_mcm(){
|
|
for opt in `ls --ignore=*.jar ~/.minecraft/mods`; do
|
|
COMPREPLY+=("$opt")
|
|
done
|
|
}
|
|
complete -F cmpt_mcm mcm
|
|
|
|
cmpt_newp(){
|
|
for opt in `ls $SCRIPT_PATH/newp-template`; do
|
|
COMPREPLY+=("${opt%.*}")
|
|
done
|
|
}
|
|
complete -F cmpt_newp newp
|
|
|
|
# cmpt_prj(){
|
|
# for opt in `ls ~/dev`; do
|
|
# COMPREPLY+=("$opt")
|
|
# done
|
|
# }
|
|
# complete -F cmpt_prj prj
|
|
|
|
source $DEV_OPT_PATH/script.download/git-completion.bash
|
|
__git_complete g git
|
|
source <(git lfs completion bash)
|
|
|
|
cmpt_cs(){
|
|
for opt in `ls $DEV_OPT_PATH/cheat-sheet`; do
|
|
COMPREPLY+=("$opt")
|
|
done
|
|
}
|
|
complete -F cmpt_cs cs
|
|
|
|
source $DEV_OPT_PATH/script.download/completion.mdbook
|
|
|
|
source $DEV_OPT_PATH/script.download/hugo-completion.sh
|