commands: add a "tui" alias for "termui"

Michael Muré created

Change summary

commands/termui.go           | 1 +
misc/bash_completion/git-bug | 4 ++++
2 files changed, 5 insertions(+)

Detailed changes

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,

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")