From d217eff6a1b00b611243c358973feb9b4ceba923 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 26 May 2011 19:37:15 -0700 Subject: [PATCH] set options and load modules only once at loadtime --- history-substring-search.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/history-substring-search.zsh b/history-substring-search.zsh index b3ba7fd..07dd94d 100644 --- a/history-substring-search.zsh +++ b/history-substring-search.zsh @@ -44,13 +44,13 @@ # -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*- # vim: ft=zsh sw=2 ts=2 et +setopt extendedglob +zmodload -i zsh/parameter + HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=magenta,fg=white,bold' HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=white,bold' history-substring-search-begin() { - setopt extendedglob - zmodload -i zsh/parameter - if [[ $LASTWIDGET != history-substring-search-* ]]; then # $BUFFER contains the text that is in the command-line currently. # we put an extra "\\" before meta characters such as "\(" and "\)",