I have no memory so I love bash completion

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-01-19 18:17:04 -05:00
parent 6a78153883
commit d734bf4044
2 changed files with 20 additions and 3 deletions

View File

@ -32,8 +32,9 @@ case "$1" in
echo uboot did not successfully compile echo uboot did not successfully compile
fi fi
;; ;;
stop|status) branches|status)
echo stop or status $1 git remote -v
git branch -r
;; ;;
start) start)
echo try start echo try start
@ -47,7 +48,11 @@ case "$1" in
;; ;;
*) *)
echo something else $1 echo
echo 'uboot branches -- shows the git repos and branches'
echo 'uboot clean -- purges more or less absolutely everything except .*'
echo 'uboot build -- builds uboot for the pinebook'
echo 'uboot flash -- flashes uboot onto the host "witserial"'
;; ;;
esac esac

View File

@ -0,0 +1,12 @@
# bash uboot completion -*- shell-script -*-
_uboot()
{
local cur prev words cword
_init_completion || return
COMPREPLY=( $( compgen -W "branches build flash clean" -- "$cur" ) )
} &&
complete -F _uboot uboot
# ex: filetype=sh