X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=contrib%2Ftg-completion.bash;h=4d69c05e26951307a38070bbd0315af60833dbf5;hb=3aec3f8eece2f1f2b6d1df66ce48b060733ff6f8;hp=59fbc5065475bdb0241e73945f022196c9a0fc4f;hpb=7b7ec06945024ed99181fac2b88f8fe44eb5a6f8;p=topgit.git diff --git a/contrib/tg-completion.bash b/contrib/tg-completion.bash index 59fbc50..4d69c05 100755 --- a/contrib/tg-completion.bash +++ b/contrib/tg-completion.bash @@ -191,7 +191,7 @@ __tg_complete_revlist () __tg_topics () { - tg summary | cut -f 2 + tg summary -t } __tg_commands () @@ -376,7 +376,15 @@ _tg_remote () _tg_summary () { - COMPREPLY=() + local cur="${COMP_WORDS[COMP_CWORD]}" + + case "$cur" in + *) + __tgcomp " + --graphviz + -t + " + esac } _tg_update ()