# This alters the default behavior of the completion functions. If set
# to ‘on’, words which have more than one possible completion cause the
# matches to be listed immediately instead of ringing the bell. The default
# value is ‘off’.
set show-all-if-ambiguous on

# If set to ‘on’, this alters the default completion behavior when inserting
# a single match into the line. It's only active when performing completion
# in the middle of a word. If enabled, readline does not insert characters
# from the completion that match characters after point in the word being
# completed, so portions of the word following the cursor are not duplicated.
# For instance, if this is enabled, attempting completion when the cursor is
# after the ‘e’ in ‘Makefile’ will result in ‘Makefile’ rather than ‘Makefilefile’,
# assuming there is a single possible completion. The default value is ‘off’.
set skip-completed-text on

# The number of possible completions that determines when the user is asked
# whether the list of possibilities should be displayed. If the number of
# possible completions is greater than this value, Readline will ask the user
# whether or not he wishes to view them; otherwise, they are simply listed.
# This variable must be set to an integer value greater than or equal to 0.
# A negative value means Readline should never ask. The default limit is 100.
set completion-query-items 200

# Uncomment to use ? as an alternative to <TAB>
# ?: complete
