2023-02-01 19:08:43 +01:00
|
|
|
#!/bin/bash
|
2023-02-04 11:52:42 +01:00
|
|
|
# fait la completion automatique pour des script fait maison ;)
|
2023-02-01 19:08:43 +01:00
|
|
|
|
|
|
|
cmpt_mcm(){
|
|
|
|
for opt in `ls --ignore=*.jar ~/.minecraft/mods`; do
|
|
|
|
COMPREPLY+=("$opt")
|
|
|
|
done
|
|
|
|
}
|
|
|
|
complete -F cmpt_mcm mcm
|
|
|
|
|
|
|
|
cmpt_newp(){
|
2024-02-29 15:09:00 +01:00
|
|
|
for opt in `ls $SCRIPT_PATH/newp-template`; do
|
2023-02-01 19:08:43 +01:00
|
|
|
COMPREPLY+=("${opt%.*}")
|
|
|
|
done
|
|
|
|
}
|
|
|
|
complete -F cmpt_newp newp
|
|
|
|
|
2023-02-05 10:12:25 +01:00
|
|
|
# cmpt_prj(){
|
|
|
|
# for opt in `ls ~/dev`; do
|
|
|
|
# COMPREPLY+=("$opt")
|
|
|
|
# done
|
|
|
|
# }
|
|
|
|
# complete -F cmpt_prj prj
|
2023-03-04 12:48:25 +01:00
|
|
|
|
2024-02-29 15:09:00 +01:00
|
|
|
source $DEV_OPT_PATH/script.download/git-completion.bash
|
2023-03-04 12:48:25 +01:00
|
|
|
__git_complete g git
|
2025-02-14 14:16:45 +01:00
|
|
|
source <(git lfs completion bash)
|
2023-03-04 12:48:25 +01:00
|
|
|
|
|
|
|
cmpt_cs(){
|
2024-02-29 15:09:00 +01:00
|
|
|
for opt in `ls $DEV_OPT_PATH/cheat-sheet`; do
|
2023-03-04 12:48:25 +01:00
|
|
|
COMPREPLY+=("$opt")
|
|
|
|
done
|
|
|
|
}
|
|
|
|
complete -F cmpt_cs cs
|
2023-09-30 23:50:35 +02:00
|
|
|
|
2024-02-29 15:09:00 +01:00
|
|
|
source $DEV_OPT_PATH/script.download/completion.mdbook
|
2023-12-11 09:03:59 +01:00
|
|
|
|
2024-02-29 15:09:00 +01:00
|
|
|
source $DEV_OPT_PATH/script.download/hugo-completion.sh
|