about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/console.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index d800cd14..e37516aa 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -905,6 +905,11 @@ _cons_show_account(ProfAccount *account)
 static void
 _cons_show_aliases(GList *aliases)
 {
+    if (aliases == NULL) {
+        cons_show("No aliases configured.");
+        return;
+    }
+
     GList *curr = aliases;
     if (curr != NULL) {
         cons_show("Command aliases:");