4a135b33b7
* upgraded to subversion bash completion script shipped with subversion 1.6.17 * added git bash completion script shipped with git 1.7.5.4 * readded bash completion to the image git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42257 a95241bf-73f2-0310-859d-f6bbb57e9c96
49 lines
2.0 KiB
Bash
49 lines
2.0 KiB
Bash
# larch(1) completion by Alex Shinn <foof@synthcode.com>
|
|
|
|
have larch &&
|
|
_larch()
|
|
{
|
|
local cur prev
|
|
|
|
COMPREPLY=()
|
|
_get_comp_words_by_ref cur prev
|
|
|
|
if [[ $COMP_CWORD -eq 1 || "$prev" == -* ]]; then
|
|
COMPREPLY=( $( compgen -W ' \
|
|
my-id my-default-archive register-archive whereis-archive archives \
|
|
init-tree tree-root tree-version set-tree-version inventory \
|
|
tagging-method tree-lint missing-tags add delete \
|
|
move explicit-default set-manifest manifest check-manifest mkpatch \
|
|
dopatch patch-report empty-patch make-archive make-category \
|
|
make-branch make-version categories branches versions revisions \
|
|
cat-archive-log archive-cache-revision archive-cached-revisions \
|
|
archive-uncache-revision category-readme branch-readme \
|
|
version-readme make-log logs add-log log-ls cat-log \
|
|
log-header-field changelog log-for-merge merge-points \
|
|
new-on-branch import commit get get-patch lock-branch \
|
|
lock-revision push-mirror build-config update-config replay-config \
|
|
record-config show-config config-history update replay delta-patch \
|
|
star-merge tag prepare-branch finish-branch join-branch \
|
|
whats-missing what-changed file-diffs pristines lock-pristine \
|
|
my-revision-library library-find library-add library-remove \
|
|
library-archives library-categories library-branches \
|
|
library-versions library-revisions library-log library-file \
|
|
touched-files-prereqs patch-set-web update-distributions \
|
|
distribution-name notify my-notifier mail-new-categories \
|
|
mail-new-branches mail-new-versions mail-new-revisions \
|
|
notify-library notify-browser push-new-revisions sendmail-mailx' \
|
|
"$cur" ))
|
|
fi
|
|
|
|
return 0
|
|
} &&
|
|
complete -F _larch -o default larch
|
|
|
|
# Local variables:
|
|
# mode: shell-script
|
|
# sh-basic-offset: 4
|
|
# sh-indent-comment: t
|
|
# indent-tabs-mode: nil
|
|
# End:
|
|
# ex: ts=4 sw=4 et filetype=sh
|