首页 > 系统服务 > 详细

shell _autotab complete

时间:2020-01-14 15:46:52      阅读:87      评论:0      收藏:0      [点我收藏+]
# bash completion for apollo.sh -*- shell-script -*-
# Usage: ./apollo.sh TAB
autotab_list=("check" "build" "build_dist" "clean_dist" "build_min" "build_prof" "build_no_perception" "build_dbg" "build_opt" "build_dbg_gpu" "build_opt_gpu" "build_remote" "build_remote_cache" "build_remote_incar" "build_fe" "buildify" "build_py" "config" "doc" "lint" "test" "test_gpu" "release" "release_noproprietary" "coverage" "clean" "version" "usage")
function _autotab() {
local cur
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "${autotab_list[*]}" -- ${cur}) )
return 0
}
complete -F _autotab apollo.sh

shell _autotab complete

原文:https://www.cnblogs.com/cjyp/p/12192042.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!