From aa16e18644b3fee0b3cf0320692d6566d539cdd0 Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Sun, 22 Feb 2015 09:29:31 -0800 Subject: Updating histoby-substring-search README to instruct user to load plugins via .zshrc. Closes #1832. --- plugins/history-substring-search/README | 7 ------- plugins/history-substring-search/README.markdown | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 plugins/history-substring-search/README create mode 100644 plugins/history-substring-search/README.markdown (limited to 'plugins/history-substring-search') diff --git a/plugins/history-substring-search/README b/plugins/history-substring-search/README deleted file mode 100644 index be11adf76..000000000 --- a/plugins/history-substring-search/README +++ /dev/null @@ -1,7 +0,0 @@ -To activate this script, load it into an interactive ZSH session: - - % source history-substring-search.zsh - -See the "history-substring-search.zsh" file for more information: - - % sed -n '2,/^$/s/^#//p' history-substring-search.zsh | more diff --git a/plugins/history-substring-search/README.markdown b/plugins/history-substring-search/README.markdown new file mode 100644 index 000000000..143b813a1 --- /dev/null +++ b/plugins/history-substring-search/README.markdown @@ -0,0 +1,7 @@ +To activate this script, please include it the `plugins` variable within `~/.zshrc` + + `plugins=(git history-substring-search.zsh)` + +See the "history-substring-search.zsh" file for more information: + + `sed -n '2,/^$/s/^#//p' history-substring-search.zsh | more` -- cgit v1.2.3-70-g09d2 From 743be91b207d4617e68b04a43311438652cec63d Mon Sep 17 00:00:00 2001 From: Xin Li Date: Thu, 21 May 2015 12:34:04 -0700 Subject: Don't leak extendedglob to global environment. --- plugins/history-substring-search/history-substring-search.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/history-substring-search') diff --git a/plugins/history-substring-search/history-substring-search.zsh b/plugins/history-substring-search/history-substring-search.zsh index 22f03dd6d..65f0750db 100644 --- a/plugins/history-substring-search/history-substring-search.zsh +++ b/plugins/history-substring-search/history-substring-search.zsh @@ -175,7 +175,6 @@ fi # implementation details #----------------------------------------------------------------------------- -setopt extendedglob zmodload -F zsh/parameter # @@ -284,6 +283,7 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then fi function _history-substring-search-begin() { + setopt localoptions extendedglob _history_substring_search_move_cursor_eol=false _history_substring_search_query_highlight= @@ -350,6 +350,7 @@ function _history-substring-search-begin() { } function _history-substring-search-end() { + setopt localoptions extendedglob _history_substring_search_result=$BUFFER # move the cursor to the end of the command line -- cgit v1.2.3-70-g09d2 From 6bec3c6719f17898b6504a6189424bc23cc10c65 Mon Sep 17 00:00:00 2001 From: Matheus Cruz Rocha Date: Sat, 2 May 2015 12:59:18 -0300 Subject: Update history-substring-search README This Change remove the .zsh on the plugin activate example, cause with the .zsh at the end the plugin won't be activated --- plugins/history-substring-search/README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/history-substring-search') diff --git a/plugins/history-substring-search/README.markdown b/plugins/history-substring-search/README.markdown index 143b813a1..c154afdce 100644 --- a/plugins/history-substring-search/README.markdown +++ b/plugins/history-substring-search/README.markdown @@ -1,6 +1,6 @@ To activate this script, please include it the `plugins` variable within `~/.zshrc` - `plugins=(git history-substring-search.zsh)` + `plugins=(git history-substring-search)` See the "history-substring-search.zsh" file for more information: -- cgit v1.2.3-70-g09d2