Skip to content

Loading…

add completion messages #593

Closed
wants to merge 1 commit into from

2 participants

@olivierverdier

the completion messages are more verbose; they display the category of the current completion (file, command, etc.)

@olivierverdier olivierverdier add completion messages
the completion messages are more verbose; they display the category of the current completion (file, command, etc.)
814bf1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 9, 2011
  1. @olivierverdier

    add completion messages

    olivierverdier committed
    the completion messages are more verbose; they display the category of the current completion (file, command, etc.)
Showing with 18 additions and 0 deletions.
  1. +18 −0 lib/completion.zsh
View
18 lib/completion.zsh
@@ -68,3 +68,21 @@ if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots
fi
+
+
+# Completion messages
+# originally due to Adam Spiers <adam@spiers.net>
+
+# Separate matches into groups
+zstyle ':completion:*:matches' group 'yes'
+
+# Describe each match group.
+zstyle ':completion:*:descriptions' format "%B---- %d%b"
+
+# Messages/warnings format
+zstyle ':completion:*:messages' format '%B%U---- %d%u%b'
+zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b'
+
+# Describe options in full
+zstyle ':completion:*:options' description 'yes'
+zstyle ':completion:*:options' auto-description '%d'
Something went wrong with that request. Please try again.