Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix shellcheck warnings and trim excess whitespace #625

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
2. Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`):

```sh
plugins=(
plugins=(
# other plugins...
zsh-autosuggestions
)
Expand Down
8 changes: 4 additions & 4 deletions install_test_zsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
set -ex

for v in $(grep "^[^#]" ZSH_VERSIONS); do
mkdir zsh-$v
cd zsh-$v
mkdir "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
./configure --enable-pcre \
Expand All @@ -22,5 +22,5 @@ for v in $(grep "^[^#]" ZSH_VERSIONS); do

cd ..

rm -rf zsh-$v
rm -rf "zsh-$v"
done
2 changes: 1 addition & 1 deletion src/bind.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ _zsh_autosuggest_bind_widget() {
_zsh_autosuggest_bind_widgets() {
emulate -L zsh

local widget
local widget
local ignore_widgets

ignore_widgets=(
Expand Down
8 changes: 4 additions & 4 deletions zsh-autosuggestions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# v0.7.0
# Copyright (c) 2013 Thiago de Arruda
# Copyright (c) 2016-2021 Eric Freese
#
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
Expand All @@ -12,10 +12,10 @@
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Expand Down Expand Up @@ -193,7 +193,7 @@ _zsh_autosuggest_bind_widget() {
_zsh_autosuggest_bind_widgets() {
emulate -L zsh

local widget
local widget
local ignore_widgets

ignore_widgets=(
Expand Down