mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-06-05 12:36:28 +08:00
Merge 21ca3b5b91
into c3d4e576c9
This commit is contained in:
commit
bf0b6aec44
@ -41,7 +41,7 @@
|
|||||||
2. Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`):
|
2. Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
plugins=(
|
plugins=(
|
||||||
# other plugins...
|
# other plugins...
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
)
|
)
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
for v in $(grep "^[^#]" ZSH_VERSIONS); do
|
for v in $(grep "^[^#]" ZSH_VERSIONS); do
|
||||||
mkdir zsh-$v
|
mkdir "zsh-$v"
|
||||||
cd zsh-$v
|
cd "zsh-$v"
|
||||||
|
|
||||||
curl -L https://api.github.com/repos/zsh-users/zsh/tarball/zsh-$v | tar xz --strip=1
|
curl -L "https://api.github.com/repos/zsh-users/zsh/tarball/zsh-$v" | tar xz --strip=1
|
||||||
|
|
||||||
./Util/preconfig
|
./Util/preconfig
|
||||||
./configure --enable-pcre \
|
./configure --enable-pcre \
|
||||||
@ -22,5 +22,5 @@ for v in $(grep "^[^#]" ZSH_VERSIONS); do
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
rm -rf zsh-$v
|
rm -rf "zsh-$v"
|
||||||
done
|
done
|
||||||
|
@ -63,7 +63,7 @@ _zsh_autosuggest_bind_widget() {
|
|||||||
_zsh_autosuggest_bind_widgets() {
|
_zsh_autosuggest_bind_widgets() {
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
|
|
||||||
local widget
|
local widget
|
||||||
local ignore_widgets
|
local ignore_widgets
|
||||||
|
|
||||||
ignore_widgets=(
|
ignore_widgets=(
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# v0.7.0
|
# v0.7.0
|
||||||
# Copyright (c) 2013 Thiago de Arruda
|
# Copyright (c) 2013 Thiago de Arruda
|
||||||
# Copyright (c) 2016-2021 Eric Freese
|
# Copyright (c) 2016-2021 Eric Freese
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person
|
# Permission is hereby granted, free of charge, to any person
|
||||||
# obtaining a copy of this software and associated documentation
|
# obtaining a copy of this software and associated documentation
|
||||||
# files (the "Software"), to deal in the Software without
|
# files (the "Software"), to deal in the Software without
|
||||||
@ -12,10 +12,10 @@
|
|||||||
# copies of the Software, and to permit persons to whom the
|
# copies of the Software, and to permit persons to whom the
|
||||||
# Software is furnished to do so, subject to the following
|
# Software is furnished to do so, subject to the following
|
||||||
# conditions:
|
# conditions:
|
||||||
#
|
#
|
||||||
# The above copyright notice and this permission notice shall be
|
# The above copyright notice and this permission notice shall be
|
||||||
# included in all copies or substantial portions of the Software.
|
# included in all copies or substantial portions of the Software.
|
||||||
#
|
#
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
@ -193,7 +193,7 @@ _zsh_autosuggest_bind_widget() {
|
|||||||
_zsh_autosuggest_bind_widgets() {
|
_zsh_autosuggest_bind_widgets() {
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
|
|
||||||
local widget
|
local widget
|
||||||
local ignore_widgets
|
local ignore_widgets
|
||||||
|
|
||||||
ignore_widgets=(
|
ignore_widgets=(
|
||||||
|
Loading…
Reference in New Issue
Block a user