I have no memory so I love bash completion
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
6a78153883
commit
d734bf4044
11
u-boot/uboot
11
u-boot/uboot
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue