From e04d6e8f3f928492cfbd09af35e4d0256f04a3eb Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Mon, 13 Sep 2021 22:47:21 +0000 Subject: [PATCH 1/2] fix shellcheck warnings --- install_test_zsh.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install_test_zsh.sh b/install_test_zsh.sh index 40dc4c56..d3f3ba12 100755 --- a/install_test_zsh.sh +++ b/install_test_zsh.sh @@ -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 \ @@ -22,5 +22,5 @@ for v in $(grep "^[^#]" ZSH_VERSIONS); do cd .. - rm -rf zsh-$v + rm -rf "zsh-$v" done From 21ca3b5b91dca8a6fb5aca885353e70a2310680a Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Thu, 19 Aug 2021 23:51:15 +0000 Subject: [PATCH 2/2] trim excess whitespace --- INSTALL.md | 2 +- src/bind.zsh | 2 +- zsh-autosuggestions.zsh | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 196524fe..859b623e 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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 ) diff --git a/src/bind.zsh b/src/bind.zsh index 1dde137c..7d8eda6f 100644 --- a/src/bind.zsh +++ b/src/bind.zsh @@ -63,7 +63,7 @@ _zsh_autosuggest_bind_widget() { _zsh_autosuggest_bind_widgets() { emulate -L zsh - local widget + local widget local ignore_widgets ignore_widgets=( diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b19cac73..92eb2395 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -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 @@ -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 @@ -193,7 +193,7 @@ _zsh_autosuggest_bind_widget() { _zsh_autosuggest_bind_widgets() { emulate -L zsh - local widget + local widget local ignore_widgets ignore_widgets=(