diff --git a/commands/termui.go b/commands/termui.go index 19a1397a8040c193aabce2fe53af980e20157ca1..2cdc350773de40909d7486d898fb5772f8ee0ae4 100644 --- a/commands/termui.go +++ b/commands/termui.go @@ -20,6 +20,7 @@ func runTermUI(cmd *cobra.Command, args []string) error { var termUICmd = &cobra.Command{ Use: "termui", + Aliases: []string{"tui"}, Short: "Launch the terminal UI.", PreRunE: loadRepoEnsureUser, RunE: runTermUI, diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index ae3242e57c08b961ddf8e0d9d218a6f067abe1de..06032f1002d45757bc5ebc94bce2210e8cea2c3b 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -1042,6 +1042,10 @@ _git-bug_root_command() commands+=("show") commands+=("status") commands+=("termui") + if [[ -z "${BASH_VERSION}" || "${BASH_VERSINFO[0]}" -gt 3 ]]; then + command_aliases+=("tui") + aliashash["tui"]="termui" + fi commands+=("title") commands+=("user") commands+=("version")