1d09c6bb0a950756a65b02457842933e3aa493eb

Author
vladislav doster <10052309+vladdoster@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

style: remove trailing whitespace (#12303)

Diff

This diff is truncated to protect this page.

  1diff --git a/custom/example.zsh b/custom/example.zsh
  2index 21a8d8be7c861c94b6b37fc524793754ed1dd0b2..c194f49d78fb1ee67a2a1ceb9e352a1404af469d 100644
  3--- a/custom/example.zsh
  4+++ b/custom/example.zsh
  5@@ -1,12 +1,12 @@
  6 # Put files in this folder to add your own custom functionality.
  7 # See: https://github.com/ohmyzsh/ohmyzsh/wiki/Customization
  8-# 
  9+#
 10 # Files in the custom/ directory will be:
 11 # - loaded automatically by the init script, in alphabetical order
 12 # - loaded last, after all built-ins in the lib/ directory, to override them
 13 # - ignored by git by default
 14-# 
 15+#
 16 # Example: add custom/shortcuts.zsh for shortcuts to your local projects
 17-# 
 18+#
 19 # brainstormr=~/Projects/development/planetargon/brainstormr
 20 # cd $brainstormr
 21diff --git a/custom/themes/example.zsh-theme b/custom/themes/example.zsh-theme
 22index 494d029e89f082d6846a368d23812428269dceeb..5551207f8c9d99f931293798fcbe4cd4845a5af8 100644
 23--- a/custom/themes/example.zsh-theme
 24+++ b/custom/themes/example.zsh-theme
 25@@ -1,6 +1,6 @@
 26 # Put your custom themes in this folder.
 27 # See: https://github.com/ohmyzsh/ohmyzsh/wiki/Customization#overriding-and-adding-themes
 28-# 
 29+#
 30 # Example:
 31 
 32 PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
 33diff --git a/lib/compfix.zsh b/lib/compfix.zsh
 34index b09b283f2785967468ece63506b4d6d34df60283..2fe9d9e64a5b8bebeab7b01439f56bd15afb974d 100644
 35--- a/lib/compfix.zsh
 36+++ b/lib/compfix.zsh
 37@@ -13,7 +13,7 @@ function handle_completion_insecurities() {
 38   #     /usr/share/zsh/5.0.6
 39   #
 40   # Since the ignorable first line is printed to stderr and thus not captured,
 41-  # stderr is squelched to prevent this output from leaking to the user. 
 42+  # stderr is squelched to prevent this output from leaking to the user.
 43   local -aU insecure_dirs
 44   insecure_dirs=( ${(f@):-"$(compaudit 2>/dev/null)"} )
 45 
 46diff --git a/lib/diagnostics.zsh b/lib/diagnostics.zsh
 47index eaeba7d2313be12f843ee0ab0249a4c23076207d..d67e6fab43e65ba7de27e5d1b68f8f196e2f7c06 100644
 48--- a/lib/diagnostics.zsh
 49+++ b/lib/diagnostics.zsh
 50@@ -30,7 +30,7 @@
 51 #
 52 # This is written in a defensive style so it still works (and can detect) cases when
 53 # basic functionality like echo and which have been redefined. In particular, almost
 54-# everything is invoked with "builtin" or "command", to work in the face of user 
 55+# everything is invoked with "builtin" or "command", to work in the face of user
 56 # redefinitions.
 57 #
 58 # OPTIONS
 59@@ -59,7 +59,7 @@ function omz_diagnostic_dump() {
 60   emulate -L zsh
 61 
 62   builtin echo "Generating diagnostic dump; please be patient..."
 63-  
 64+
 65   local thisfcn=omz_diagnostic_dump
 66   local -A opts
 67   local opt_verbose opt_noverbose opt_outfile
 68@@ -90,7 +90,7 @@ function omz_diagnostic_dump() {
 69   builtin echo
 70   builtin echo Diagnostic dump file created at: "$outfile"
 71   builtin echo
 72-  builtin echo To share this with OMZ developers, post it as a gist on GitHub 
 73+  builtin echo To share this with OMZ developers, post it as a gist on GitHub
 74   builtin echo at "https://gist.github.com" and share the link to the gist.
 75   builtin echo
 76   builtin echo "WARNING: This dump file contains all your zsh and omz configuration files,"
 77@@ -105,8 +105,8 @@ function _omz_diag_dump_one_big_text() {
 78   builtin echo oh-my-zsh diagnostic dump
 79   builtin echo
 80   builtin echo $outfile
 81-  builtin echo 
 82-  
 83+  builtin echo
 84+
 85   # Basic system and zsh information
 86   command date
 87   command uname -a
 88@@ -151,7 +151,7 @@ function _omz_diag_dump_one_big_text() {
 89 
 90   # Core command definitions
 91   _omz_diag_dump_check_core_commands || return 1
 92-  builtin echo  
 93+  builtin echo
 94 
 95   # ZSH Process state
 96   builtin echo Process state:
 97@@ -167,7 +167,7 @@ function _omz_diag_dump_one_big_text() {
 98   #TODO: Should this include `env` instead of or in addition to `export`?
 99   builtin echo Exported:
100   builtin echo $(builtin export | command sed 's/=.*//')
101-  builtin echo 
102+  builtin echo
103   builtin echo Locale:
104   command locale
105   builtin echo
106@@ -181,7 +181,7 @@ function _omz_diag_dump_one_big_text() {
107   builtin echo
108   builtin echo 'compaudit output:'
109   compaudit
110-  builtin echo 
111+  builtin echo
112   builtin echo '$fpath directories:'
113   command ls -lad $fpath
114   builtin echo
115@@ -224,7 +224,7 @@ function _omz_diag_dump_one_big_text() {
116   local cfgfile cfgfiles
117   # Some files for bash that zsh does not use are intentionally included
118   # to help with diagnosing behavior differences between bash and zsh
119-  cfgfiles=( /etc/zshenv /etc/zprofile /etc/zshrc /etc/zlogin /etc/zlogout 
120+  cfgfiles=( /etc/zshenv /etc/zprofile /etc/zshrc /etc/zlogin /etc/zlogout
121     $zdotdir/.zshenv $zdotdir/.zprofile $zdotdir/.zshrc $zdotdir/.zlogin $zdotdir/.zlogout
122     ~/.zsh.pre-oh-my-zsh
123     /etc/bashrc /etc/profile ~/.bashrc ~/.profile ~/.bash_profile ~/.bash_logout )
124@@ -258,8 +258,8 @@ function _omz_diag_dump_check_core_commands() {
125   # (For back-compatibility, if any of these are newish, they should be removed,
126   # or at least made conditional on the version of the current running zsh.)
127   # "history" is also excluded because OMZ is known to redefine that
128-  reserved_words=( do done esac then elif else fi for case if while function 
129-    repeat time until select coproc nocorrect foreach end '!' '[[' '{' '}' 
130+  reserved_words=( do done esac then elif else fi for case if while function
131+    repeat time until select coproc nocorrect foreach end '!' '[[' '{' '}'
132     )
133   builtins=( alias autoload bg bindkey break builtin bye cd chdir command
134     comparguments compcall compctl compdescribe compfiles compgroups compquote comptags
135@@ -331,7 +331,7 @@ function _omz_diag_dump_os_specific_version() {
136   case "$OSTYPE" in
137     darwin*)
138       osname=$(command sw_vers -productName)
139-      osver=$(command sw_vers -productVersion)      
140+      osver=$(command sw_vers -productVersion)
141       builtin echo "OS Version: $osname $osver build $(sw_vers -buildVersion)"
142       ;;
143     cygwin)
144diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
145index 137ca3b6fc149ea696f6551f6000af749ad6656f..2fb20298a0138d425ec43119ec73e962b5f3e9fd 100644
146--- a/oh-my-zsh.sh
147+++ b/oh-my-zsh.sh
148@@ -152,7 +152,7 @@ unset zcompdump_revision zcompdump_fpath zcompdump_refresh
149 # zcompile the completion dump file if the .zwc is older or missing.
150 if command mkdir "${ZSH_COMPDUMP}.lock" 2>/dev/null; then
151   zrecompile -q -p "$ZSH_COMPDUMP"
152-  command rm -rf "$ZSH_COMPDUMP.zwc.old" "${ZSH_COMPDUMP}.lock" 
153+  command rm -rf "$ZSH_COMPDUMP.zwc.old" "${ZSH_COMPDUMP}.lock"
154 fi
155 
156 _omz_source() {
157diff --git a/plugins/ansible/README.md b/plugins/ansible/README.md
158index ce21e707539394c3136f8d8f26cc7af9be10a0e1..dd0e1ce03ebcbd056013e255a71339096847cfdc 100644
159--- a/plugins/ansible/README.md
160+++ b/plugins/ansible/README.md
161@@ -28,6 +28,6 @@ plugins=(... ansible)
162 
163 ## Maintainer
164 
165-### [Deepankumar](https://github.com/deepan10) 
166+### [Deepankumar](https://github.com/deepan10)
167 
168 [https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin](https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin)
169diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
170index 071dd1f0b9a9f84ec2d3426f0c392b713c65be0d..0c43031df6b2a09b122b582af0f8443239ecd898 100644
171--- a/plugins/aws/aws.plugin.zsh
172+++ b/plugins/aws/aws.plugin.zsh
173@@ -280,7 +280,7 @@ if [[ "$AWS_PROFILE_STATE_ENABLED" == true ]]; then
174   test -s "${AWS_STATE_FILE}" || return
175 
176   aws_state=($(cat $AWS_STATE_FILE))
177-  
178+
179   export AWS_DEFAULT_PROFILE="${aws_state[1]}"
180   export AWS_PROFILE="$AWS_DEFAULT_PROFILE"
181   export AWS_EB_PROFILE="$AWS_DEFAULT_PROFILE"
182diff --git a/plugins/branch/README.md b/plugins/branch/README.md
183index a15dd22df2aeb1f0f756713791003165b29c45c4..2b6d12d291eff78f451be6629b334d52c35eda22 100644
184--- a/plugins/branch/README.md
185+++ b/plugins/branch/README.md
186@@ -39,7 +39,7 @@ index 2fd5f2cd..9d89a464 100644
187  PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
188 -PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
189 +PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(branch_prompt_info)'
190- 
191+
192  ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
193  ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
194 ```
195diff --git a/plugins/chruby/chruby.plugin.zsh b/plugins/chruby/chruby.plugin.zsh
196index d7a28d4e285f2c5303878db53c15a8302ff9cbdb..1210897c4a5fc5acb43e72b2c36a13ba107106b7 100644
197--- a/plugins/chruby/chruby.plugin.zsh
198+++ b/plugins/chruby/chruby.plugin.zsh
199@@ -2,7 +2,7 @@
200 
201 _source-from-omz-settings() {
202   local _chruby_path _chruby_auto
203-  
204+
205   zstyle -s :omz:plugins:chruby path _chruby_path || return 1
206   zstyle -s :omz:plugins:chruby auto _chruby_auto || return 1
207 
208@@ -23,7 +23,7 @@ _source-from-homebrew() {
209   if [[ -h /usr/local/opt/chruby ]];then
210     _brew_prefix="/usr/local/opt/chruby"
211   else
212-    # ok , it is not default prefix 
213+    # ok , it is not default prefix
214     # this call to brew is expensive ( about 400 ms ), so at least let's make it only once
215     _brew_prefix=$(brew --prefix chruby)
216   fi
217diff --git a/plugins/cloudfoundry/README.md b/plugins/cloudfoundry/README.md
218index 89dd9d1ce2da1a75c2b5cef3ed0fcf539b634dfd..567a9056bb675130d69d1d76e47f322b71ae22bc 100644
219--- a/plugins/cloudfoundry/README.md
220+++ b/plugins/cloudfoundry/README.md
221@@ -50,7 +50,7 @@ Alternatively, seek out the [online documentation][3]. And don't forget, there a
222 
223 ## Contributors
224 
225-Contributed to `oh_my_zsh` by [benwilcock][2].  
226+Contributed to `oh_my_zsh` by [benwilcock][2].
227 
228 [1]: https://docs.cloudfoundry.org/cf-cli/install-go-cli.html
229 [2]: https://github.com/benwilcock
230diff --git a/plugins/coffee/README.md b/plugins/coffee/README.md
231index 2baade844b732853885c787baf8e86b3ba0826ea..c2ab192b670bb8bf5bd60d5b78c1cc1f4efd6032 100644
232--- a/plugins/coffee/README.md
233+++ b/plugins/coffee/README.md
234@@ -24,7 +24,7 @@ Also provides the following aliases:
235 * **cfc:** Copies the compiled JS to your clipboard. Very useful when you want
236            to run the code in a JS console.
237 
238-* **cfp:** Compiles from your currently copied clipboard. Useful when you want 
239+* **cfp:** Compiles from your currently copied clipboard. Useful when you want
240            to compile large/multi-line snippets
241 
242 * **cfpc:** Paste coffeescript from clipboard, compile to JS, then copy the
243diff --git a/plugins/compleat/compleat.plugin.zsh b/plugins/compleat/compleat.plugin.zsh
244index 38f1b396aabf16926d6f0aff06e6f20b2840ab40..7fbd2b953593bef4448ba388d5539181eb58dee3 100644
245--- a/plugins/compleat/compleat.plugin.zsh
246+++ b/plugins/compleat/compleat.plugin.zsh
247@@ -7,7 +7,7 @@
248 
249 if (( ${+commands[compleat]} )); then
250   local prefix="${commands[compleat]:h:h}"
251-  local setup="${prefix}/share/compleat-1.0/compleat_setup" 
252+  local setup="${prefix}/share/compleat-1.0/compleat_setup"
253 
254   if [[ -f "$setup" ]]; then
255     if ! bashcompinit >/dev/null 2>&1; then
256@@ -15,6 +15,6 @@ if (( ${+commands[compleat]} )); then
257       bashcompinit -i
258     fi
259 
260-    source "$setup" 
261+    source "$setup"
262   fi
263 fi
264diff --git a/plugins/copybuffer/copybuffer.plugin.zsh b/plugins/copybuffer/copybuffer.plugin.zsh
265index e67f920f031b382596144b2ebb8e03022530881b..88bda32a080fab66f5cb582b6a69998161366ef0 100644
266--- a/plugins/copybuffer/copybuffer.plugin.zsh
267+++ b/plugins/copybuffer/copybuffer.plugin.zsh
268@@ -1,4 +1,4 @@
269-# copy the active line from the command line buffer 
270+# copy the active line from the command line buffer
271 # onto the system clipboard
272 
273 copybuffer () {
274diff --git a/plugins/dash/README.md b/plugins/dash/README.md
275index 0ca3e4e44d7a51fd7a1b174cbb265ee111b85018..970c6541fb2a66567e50a1fcf65200848efe1c90 100644
276--- a/plugins/dash/README.md
277+++ b/plugins/dash/README.md
278@@ -19,7 +19,7 @@ dash
279 
280 - Query for something in dash app: `dash query`
281 ```
282-dash golang 
283+dash golang
284 ```
285 
286 - You can optionally provide a keyword: `dash [keyword:]query`
287diff --git a/plugins/dotnet/dotnet.plugin.zsh b/plugins/dotnet/dotnet.plugin.zsh
288index 40ee7efaeafb507675f093813f45281aa35357de..ed7c55024135447d2a3b9ff87f1d1f61210ba528 100644
289--- a/plugins/dotnet/dotnet.plugin.zsh
290+++ b/plugins/dotnet/dotnet.plugin.zsh
291@@ -11,7 +11,7 @@ _dotnet_completion() {
292 compdef _dotnet_completion dotnet
293 
294 # Aliases bellow are here for backwards compatibility
295-# added by Shaun Tabone (https://github.com/xontab) 
296+# added by Shaun Tabone (https://github.com/xontab)
297 
298 alias dn='dotnet new'
299 alias dr='dotnet run'
300diff --git a/plugins/emoji/emoji.plugin.zsh b/plugins/emoji/emoji.plugin.zsh
301index f9e476ebf88481773c9fbebe972abffa57d43623..f7be56cf75be19f3e7c8d7fb0d8c5e1c0259a3f5 100644
302--- a/plugins/emoji/emoji.plugin.zsh
303+++ b/plugins/emoji/emoji.plugin.zsh
304@@ -24,7 +24,7 @@ unset _omz_emoji_plugin_dir
305 
306 # This is a combining character that can be placed after any other character to surround
307 # it in a "keycap" symbol.
308-# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc. 
309+# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc.
310 # It's unclear whether this should be in the $emoji array, because those characters are all ones
311 # which can be displayed on their own.
312 
313@@ -63,9 +63,9 @@ function random_emoji() {
314   [[ $list_size -eq 0 ]] && return 1
315   local random_index=$(( ( RANDOM % $list_size ) + 1 ))
316   local name=${names[$random_index]}
317-  if [[ "$group" == "flags" ]]; then 
318+  if [[ "$group" == "flags" ]]; then
319     echo ${emoji_flags[$name]}
320-  else 
321+  else
322     echo ${emoji[$name]}
323   fi
324 }
325@@ -86,22 +86,22 @@ function display_emoji() {
326   # terminals treat these emoji chars as single-width.
327   local counter=1
328   for i in $names; do
329-    if [[ "$group" == "flags" ]]; then 
330+    if [[ "$group" == "flags" ]]; then
331       printf '%s  ' "$emoji_flags[$i]"
332-    else 
333-      printf '%s  ' "$emoji[$i]" 
334+    else
335+      printf '%s  ' "$emoji[$i]"
336     fi
337     # New line every 20 emoji, to avoid weirdnesses
338     if (($counter % 20 == 0)); then
339-      printf "\n" 
340+      printf "\n"
341     fi
342     let counter=$counter+1
343   done
344   print
345   for i in $names; do
346-    if [[ "$group" == "flags" ]]; then 
347+    if [[ "$group" == "flags" ]]; then
348       echo "${emoji_flags[$i]}  = $i"
349-    else 
350+    else
351       echo "${emoji[$i]}  = $i"
352     fi
353   done
354diff --git a/plugins/emotty/emotty.plugin.zsh b/plugins/emotty/emotty.plugin.zsh
355index 661169a8b7b2f20305a8be32ab56094e168e3939..b48d121dce65d1e1b0c188ef902bfde34b128c8f 100644
356--- a/plugins/emotty/emotty.plugin.zsh
357+++ b/plugins/emotty/emotty.plugin.zsh
358@@ -4,7 +4,7 @@
359 #        AUTHOR: Alexis Hildebrandt (afh[at]surryhill.net)
360 #       VERSION: 1.0.0
361 #       DEPENDS: emoji plugin
362-#       
363+#
364 # There are different sets of emoji characters available, to choose a different
365 # set export emotty_set to the name of the set you would like to use, e.g.:
366 # % export emotty_set=nature
367diff --git a/plugins/encode64/README.md b/plugins/encode64/README.md
368index 7cdf8c3f30d85dbc36c5b88055bbdb9730867b78..e3e25a742631eabdee7a68c225edf210bc273f53 100644
369--- a/plugins/encode64/README.md
370+++ b/plugins/encode64/README.md
371@@ -40,7 +40,7 @@ plugins=(... encode64)
372 
373 ### Encoding a file
374 
375-Encode a file's contents to base64 and save output to text file.  
376+Encode a file's contents to base64 and save output to text file.
377 **NOTE:** Takes provided file and saves encoded content as new file with `.txt` extension
378 
379 - From parameter
380diff --git a/plugins/fancy-ctrl-z/README.md b/plugins/fancy-ctrl-z/README.md
381index f1b1dfa5cdf67c3a0807e33886a805516e1cb7de..82a4fd75e724c4d199580e04f7d15e9169b39147 100644
382--- a/plugins/fancy-ctrl-z/README.md
383+++ b/plugins/fancy-ctrl-z/README.md
384@@ -1,14 +1,14 @@
385 # Use Ctrl-Z to switch back to Vim
386 
387-I frequently need to execute random commands in my shell. To achieve it I pause 
388+I frequently need to execute random commands in my shell. To achieve it I pause
389 Vim by pressing Ctrl-z, type command and press fg<Enter> to switch back to Vim.
390-The fg part really hurts me. I just wanted to hit Ctrl-z once again to get back 
391-to Vim. I could not find a solution, so I developed one on my own that 
392+The fg part really hurts me. I just wanted to hit Ctrl-z once again to get back
393+to Vim. I could not find a solution, so I developed one on my own that
394 works wonderfully with ZSH.
395 
396 Source: http://sheerun.net/2014/03/21/how-to-boost-your-vim-productivity/
397 
398-Credits: 
399+Credits:
400 - original idea by @sheerun
401 - added to OMZ by @mbologna
402 
403diff --git a/plugins/fastfile/README.md b/plugins/fastfile/README.md
404index 32f619ffd05a0bff32ad9411097d92a7ad2d2b50..7291fde38ba8ca19036a57f70a743216168af46c 100644
405--- a/plugins/fastfile/README.md
406+++ b/plugins/fastfile/README.md
407@@ -71,13 +71,13 @@ them, add `<variable>=<value>` to your zshrc file, before Oh My Zsh is sourced.
408 For example: `fastfile_var_prefix='@'`.
409 
410 - `fastfile_var_prefix`: prefix for the global aliases created. Controls the prefix of the
411-  created global aliases.  
412+  created global aliases.
413   **Default:** `§` (section sign), easy to type in a german keyboard via the combination
414   [`⇧ Shift`+`3`](https://en.wikipedia.org/wiki/German_keyboard_layout#/media/File:KB_Germany.svg),
415   or using `⌥ Option`+`6` in macOS.
416 
417 - `fastfile_dir`: directory where the fastfile shortcuts are stored. Needs to end
418-  with a trailing slash.  
419+  with a trailing slash.
420   **Default:** `$HOME/.fastfile/`.
421 
422 ## Author
423diff --git a/plugins/forklift/forklift.plugin.zsh b/plugins/forklift/forklift.plugin.zsh
424index 85889481b938440a9339a7d828e23fe1451e78b3..848aedabf9667958192d17c3bc5b72ef7f96ea5d 100644
425--- a/plugins/forklift/forklift.plugin.zsh
426+++ b/plugins/forklift/forklift.plugin.zsh
427@@ -58,7 +58,7 @@ function fl {
428     tell application forkLiftSetapp
429         activate
430         set forkLiftVersion to version
431-    end tell	
432+    end tell
433   else if forkLift3 is not null and application forkLift3 is running then
434     tell application forkLift3
435         activate
436@@ -84,7 +84,7 @@ function fl {
437     else if forkLift is not null then
438         set appName to forkLift
439     end if
440-    
441+
442     tell application appName
443         activate
444         set forkLiftVersion to version
445diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
446index 7312e3d2666601706cfe75c9f4af4c04d84446ee..9e372f498e7888e0c82921e9b8a46ef4b1279bd2 100644
447--- a/plugins/fzf/fzf.plugin.zsh
448+++ b/plugins/fzf/fzf.plugin.zsh
449@@ -62,7 +62,7 @@ function fzf_setup_using_base_dir() {
450 
451 function fzf_setup_using_debian() {
452   if (( ! $+commands[apt] && ! $+commands[apt-get] )); then
453-    # Not a debian based distro 
454+    # Not a debian based distro
455     return 1
456   fi
457 
458diff --git a/plugins/gnu-utils/gnu-utils.plugin.zsh b/plugins/gnu-utils/gnu-utils.plugin.zsh
459index 6023bf2b4c81fa09436cbbad5a137bfe49859455..adc2bd3bbec569537e9df18118c9a8ddad1acc39 100644
460--- a/plugins/gnu-utils/gnu-utils.plugin.zsh
461+++ b/plugins/gnu-utils/gnu-utils.plugin.zsh
462@@ -14,7 +14,7 @@ __gnu_utils() {
463   local -a gcmds
464   local gcmd
465 
466-  # coreutils 
467+  # coreutils
468   gcmds=('g[' 'gbase64' 'gbasename' 'gcat' 'gchcon' 'gchgrp' 'gchmod'
469   'gchown' 'gchroot' 'gcksum' 'gcomm' 'gcp' 'gcsplit' 'gcut' 'gdate'
470   'gdd' 'gdf' 'gdir' 'gdircolors' 'gdirname' 'gdu' 'gecho' 'genv' 'gexpand'
471@@ -41,7 +41,7 @@ __gnu_utils() {
472   for gcmd in "${gcmds[@]}"; do
473     # Do nothing if the command isn't found
474     (( ${+commands[$gcmd]} )) || continue
475-    
476+
477     # This method allows for builtin commands to be primary but it's
478     # lost if hash -r or rehash is executed, or if $PATH is updated.
479     # Thus, a preexec hook is needed, which will only run if whoami
480diff --git a/plugins/grails/grails.plugin.zsh b/plugins/grails/grails.plugin.zsh
481index ddc25742861a41e12cd8932f57181ed36d086740..e5dceb530ff6397ab3371314d3387dd3f71e4d2f 100644
482--- a/plugins/grails/grails.plugin.zsh
483+++ b/plugins/grails/grails.plugin.zsh
484@@ -7,7 +7,7 @@ _enumerateGrailsScripts() {
485     then
486         directories+=(plugins/*/scripts)
487     fi
488-    
489+
490     # Enumerate all of the Groovy files
491     files=()
492     for dir in $directories;
493@@ -17,13 +17,13 @@ _enumerateGrailsScripts() {
494             files+=($dir/[^_]*.groovy)
495         fi
496     done
497-    
498+
499     # Don't try to basename ()
500     if [ ${#files} -eq 0 ];
501     then
502         return
503     fi
504-    
505+
506     scripts=()
507     for file in $files
508     do
509@@ -42,19 +42,19 @@ _enumerateGrailsScripts() {
510     done
511     echo $scripts
512 }
513- 
514+
515 _grails() {
516     if (( CURRENT == 2 )); then
517         scripts=( $(_enumerateGrailsScripts) )
518-        
519+
520         if [ ${#scripts} -ne 0 ];
521         then
522             _multi_parts / scripts
523             return
524         fi
525     fi
526-    
527+
528     _files
529 }
530- 
531+
532 compdef _grails grails
533diff --git a/plugins/history-substring-search/README.md b/plugins/history-substring-search/README.md
534index 71a389535527ad344f54b8ab4217ab077cdf5476..4be744c4c7b27838434a2e9ed8f1ede9214bc457 100644
535--- a/plugins/history-substring-search/README.md
536+++ b/plugins/history-substring-search/README.md
537@@ -57,13 +57,13 @@ Using [antigen](https://github.com/zsh-users/antigen):
538 
539 1. Add the `antigen bundle` command just before `antigen apply`, like this:
540 
541-``` 
542+```
543 antigen bundle zsh-users/zsh-history-substring-search
544 antigen apply
545 ```
546- 
547+
548 2. Then, **after** `antigen apply`, add the key binding configurations, like this:
549- 
550+
551 ```
552 # zsh-history-substring-search configuration
553 bindkey '^[[A' history-substring-search-up # or '\eOA'
554@@ -120,7 +120,7 @@ Usage
555           bindkey "$terminfo[kcuu1]" history-substring-search-up
556           bindkey "$terminfo[kcud1]" history-substring-search-down
557 
558-      Users have also observed that `[OA` and `[OB` are correct values, 
559+      Users have also observed that `[OA` and `[OB` are correct values,
560       _even if_ these were not the observed values. If you are having trouble
561       with the observed values, give these a try.
562 
563diff --git a/plugins/ionic/ionic.plugin.zsh b/plugins/ionic/ionic.plugin.zsh
564index cf388af1b072db7ea6a77c65f4b6cb291362c473..e3913b549d0a5b087cd9c986138ec54f53f3de33 100644
565--- a/plugins/ionic/ionic.plugin.zsh
566+++ b/plugins/ionic/ionic.plugin.zsh
567@@ -3,13 +3,13 @@ alias ih="ionic --help"
568 alias ist="ionic start"
569 alias ii="ionic info"
570 alias is="ionic serve"
571-alias icba="ionic cordova build android" 
572-alias icbi="ionic cordova build ios" 
573-alias icra="ionic cordova run android" 
574-alias icri="ionic cordova run ios" 
575-alias icrsa="ionic cordova resources android" 
576+alias icba="ionic cordova build android"
577+alias icbi="ionic cordova build ios"
578+alias icra="ionic cordova run android"
579+alias icri="ionic cordova run ios"
580+alias icrsa="ionic cordova resources android"
581 alias icrsi="ionic cordova resources ios"
582-alias icpaa="ionic cordova platform add android" 
583+alias icpaa="ionic cordova platform add android"
584 alias icpai="ionic cordova platform add ios"
585 alias icpra="ionic cordova platform rm android"
586 alias icpri="ionic cordova platform rm ios"
587diff --git a/plugins/iterm2/README.md b/plugins/iterm2/README.md
588index 3d11622dfd88a924f4271f467a525e1b64d52f26..86bd77f1de1392bb812ecf1d6a9c2dc9d0a45aaf 100644
589--- a/plugins/iterm2/README.md
590+++ b/plugins/iterm2/README.md
591@@ -9,7 +9,7 @@ plugins=(... iterm2)
592 ```
593 
594 Optionally, the plugin also applies the [Shell Integration Script for iTerm2](https://iterm2.com/documentation-shell-integration.html).
595-You can enable the integration with zstyle. It's important to add this line 
596+You can enable the integration with zstyle. It's important to add this line
597 before the line sourcing oh-my-zsh:
598 
599 ```
600diff --git a/plugins/iterm2/iterm2.plugin.zsh b/plugins/iterm2/iterm2.plugin.zsh
601index d00232a30a27883ced6d245271220b3a5247f94b..03a63a70c5e9b76361a6ac2699c3febc59745819 100644
602--- a/plugins/iterm2/iterm2.plugin.zsh
603+++ b/plugins/iterm2/iterm2.plugin.zsh
604@@ -8,7 +8,7 @@
605 if [[ "$OSTYPE" == darwin* ]] && [[ -n "$ITERM_SESSION_ID" ]] ; then
606 
607   # maybe make it the default in the future and allow opting out?
608-  if zstyle -t ':omz:plugins:iterm2' shell-integration; then 
609+  if zstyle -t ':omz:plugins:iterm2' shell-integration; then
610     # Handle $0 according to the standard:
611     # https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
612     0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
613diff --git a/plugins/iterm2/iterm2_shell_integration.zsh b/plugins/iterm2/iterm2_shell_integration.zsh
614index 7871dddedb280ec42fca89540fa4d05f2bc9f4e4..281332e0d22969b64e87bc85a12046356cf12547 100644
615--- a/plugins/iterm2/iterm2_shell_integration.zsh
616+++ b/plugins/iterm2/iterm2_shell_integration.zsh
617@@ -2,12 +2,12 @@
618 # modify it under the terms of the GNU General Public License
619 # as published by the Free Software Foundation; either version 2
620 # of the License, or (at your option) any later version.
621-# 
622+#
623 # This program is distributed in the hope that it will be useful,
624 # but WITHOUT ANY WARRANTY; without even the implied warranty of
625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
626 # GNU General Public License for more details.
627-# 
628+#
629 # You should have received a copy of the GNU General Public License
630 # along with this program; if not, write to the Free Software
631 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
632diff --git a/plugins/jira/README.md b/plugins/jira/README.md
633index b1d8a8bc64035938ef9765f0180bb7b76b603198..1c6930298c8871e2bcc933781e1f51b025905bfd 100644
634--- a/plugins/jira/README.md
635+++ b/plugins/jira/README.md
636@@ -35,7 +35,7 @@ This plugin supplies one command, `jira`, through which all its features are exp
637 
638 ### Jira Branch usage notes
639 
640-The branch name may have prefixes ending in "/": "feature/MP-1234", and also suffixes 
641+The branch name may have prefixes ending in "/": "feature/MP-1234", and also suffixes
642 starting with "_": "MP-1234_fix_dashboard". In both these cases, the issue opened will be "MP-1234"
643 
644 This is also checks if the prefix is in the name, and adds it if not, so: "MP-1234" opens the issue "MP-1234",
645diff --git a/plugins/juju/juju.plugin.zsh b/plugins/juju/juju.plugin.zsh
646index a82ebaf84eb0b074587d82ed9ec4bbc4e97d7ffb..3c159da2206ac4a2fa0b964d61677c46d8b96d18 100644
647--- a/plugins/juju/juju.plugin.zsh
648+++ b/plugins/juju/juju.plugin.zsh
649@@ -184,7 +184,7 @@ jmodel() {
650   fi
651 
652   local model="$(yq e ".controllers.$(jcontroller).current-model" < ~/.local/share/juju/models.yaml | cut -d/ -f2)"
653-  
654+
655   if [[ -z "$model" ]]; then
656     echo "--"
657     return 1
658diff --git a/plugins/kn/kn.plugin.zsh b/plugins/kn/kn.plugin.zsh
659index f60177dd9eb444ca0a16eb884044a3b6f8f46ebe..483d1d68c124179809c4efd9f5100ad902caeba3 100644
660--- a/plugins/kn/kn.plugin.zsh
661+++ b/plugins/kn/kn.plugin.zsh
662@@ -4,5 +4,5 @@
663 
664 if [ $commands[kn] ]; then
665   source <(kn completion zsh)
666-  compdef _kn kn 
667+  compdef _kn kn
668 fi
669diff --git a/plugins/macports/_port b/plugins/macports/_port
670index 897598a4608bcde22f2283b110e70106dee54e3c..f40f6550b83b3d9808ec1e82ea7c9f10225ec08a 100644
671--- a/plugins/macports/_port
672+++ b/plugins/macports/_port
673@@ -1,6 +1,6 @@
674 #compdef port
675 
676-local subcmds 
677+local subcmds
678 
679 # we cache the list of ports
680 # we shall use some cache policy to avoid problems with new ports
681@@ -31,8 +31,8 @@ subcmds=(
682 'file'
683 'help'
684 'info'
685-'install' 
686-'installed' 
687+'install'
688+'installed'
689 'list'
690 'livecheck'
691 'location'
692@@ -51,7 +51,7 @@ subcmds=(
693 'test'
694 'unarchive'
695 'uninstall'
696-'upgrade' 
697+'upgrade'
698 'variants'
699 'version'
700 )
701diff --git a/plugins/marked2/README.md b/plugins/marked2/README.md
702index 101343abbae62c7bf0975c251119b1eb847bee6e..2f825bc4a2a74416d08c881f1372dc543bc44577 100644
703--- a/plugins/marked2/README.md
704+++ b/plugins/marked2/README.md
705@@ -1,6 +1,6 @@
706 ## marked2
707 
708-Plugin for Marked 2, a previewer for Markdown files on Mac OS X 
709+Plugin for Marked 2, a previewer for Markdown files on Mac OS X
710 
711 ### Requirements
712 
713diff --git a/plugins/marktext/README.md b/plugins/marktext/README.md
714index 71d287451692e5574a40f6ad34d5cb4f02052981..254e4e7acfce28e351bafd55abb9845aebd59c9f 100644
715--- a/plugins/marktext/README.md
716+++ b/plugins/marktext/README.md
717@@ -1,6 +1,6 @@
718 ## marktext
719 
720-Plugin for MarkText, a previewer for Markdown files on Mac OS X 
721+Plugin for MarkText, a previewer for Markdown files on Mac OS X
722 
723 ### Requirements
724 
725diff --git a/plugins/mongo-atlas/README.md b/plugins/mongo-atlas/README.md
726index ef1b5e0d237d8326531a2eb48b68bb38d10318c4..94183c544e6b5388cafe0084e864241b2889c1f1 100644
727--- a/plugins/mongo-atlas/README.md
728+++ b/plugins/mongo-atlas/README.md
729@@ -1,6 +1,6 @@
730 # MongoDB Atlas plugin
731 
732-This plugin adds completion for [Atlas](https://www.mongodb.com/docs/atlas/cli/stable/) a command line interface built specifically for 
733+This plugin adds completion for [Atlas](https://www.mongodb.com/docs/atlas/cli/stable/) a command line interface built specifically for
734 MongoDB Atlas.
735 
736 To use it, add `mongo-atlas` to the plugins array in your zshrc file:
737diff --git a/plugins/n98-magerun/n98-magerun.plugin.zsh b/plugins/n98-magerun/n98-magerun.plugin.zsh
738index d79aee7eb88211bb540cda6af37180bda1d63bb4..2744ad96e37b6bd3667398a16786e2f5fd644df6 100644
739--- a/plugins/n98-magerun/n98-magerun.plugin.zsh
740+++ b/plugins/n98-magerun/n98-magerun.plugin.zsh
741@@ -1,6 +1,6 @@
742 # ------------------------------------------------------------------------------
743 # FILE: n98-magerun.plugin.zsh
744-# DESCRIPTION: oh-my-zsh n98-magerun plugin file. Adapted from composer plugin 
745+# DESCRIPTION: oh-my-zsh n98-magerun plugin file. Adapted from composer plugin
746 # AUTHOR: Andrew Dwyer (andrewrdwyer at gmail dot com)
747 # AUTHOR: Jisse Reitsma (jisse at yireo dot com)
748 # VERSION: 1.1.0
749diff --git a/plugins/nmap/nmap.plugin.zsh b/plugins/nmap/nmap.plugin.zsh
750index 406870f0017290ae30e305e44cd7f2a2ac0c51e3..f649dafc205d1f5b57b9db5efa4ceacbdc4c58f5 100644
751--- a/plugins/nmap/nmap.plugin.zsh
752+++ b/plugins/nmap/nmap.plugin.zsh
753@@ -27,6 +27,6 @@ alias nmap_detect_versions="sudo nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn"
754 alias nmap_check_for_vulns="nmap --script=vuln"
755 alias nmap_full_udp="sudo nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,443,3389 "
756 alias nmap_traceroute="sudo nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute "
757-alias nmap_full_with_scripts="sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all " 
758+alias nmap_full_with_scripts="sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all "
759 alias nmap_web_safe_osscan="sudo nmap -p 80,443 -O -v --osscan-guess --fuzzy "
760 alias nmap_ping_scan="nmap -n -sP"
761diff --git a/plugins/nomad/_nomad b/plugins/nomad/_nomad
762index 4c6cb2fcb07289a46fa522ca962b7271091ab482..87f80aa8406f0ee433610b4a979621ab4e159b1c 100644
763--- a/plugins/nomad/_nomad
764+++ b/plugins/nomad/_nomad
765@@ -89,7 +89,7 @@ __plan() {
766     '-address=[(addr) The address of the Nomad server. Overrides the NOMAD_ADDR environment variable if set. Default = http://127.0.0.1:4646]' \
767     '-region=[(region) The region of the Nomad servers to forward commands to. Overrides the NOMAD_REGION environment variable if set. Defaults to the Agent s local region.]' \
768     '-no-color[Disables colored command output.]' \
769-    '-diff[Determines whether the diff between the remote job and planned job is shown. Defaults to true.]' 
770+    '-diff[Determines whether the diff between the remote job and planned job is shown. Defaults to true.]'
771 }
772 
773 __run() {
774diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
775index 23377b0856b42004255f6dc76392b236c77aef4e..c333f76eda2c5b2c6adda87ac0fb46c312ec05a9 100644
776--- a/plugins/npm/npm.plugin.zsh
777+++ b/plugins/npm/npm.plugin.zsh
778@@ -58,7 +58,7 @@ alias npmt="npm test"
779 # Run npm scripts
780 alias npmR="npm run"
781 
782-# Run npm publish 
783+# Run npm publish
784 alias npmP="npm publish"
785 
786 # Run npm init
787diff --git a/plugins/nvm/nvm.plugin.zsh b/plugins/nvm/nvm.plugin.zsh
788index 6a5afecfab18c5e6406d118784aa408a7e8a1aa8..c2e8de94b5affa6ded43dc94ea6bba64680f5a4f 100644
789--- a/plugins/nvm/nvm.plugin.zsh
790+++ b/plugins/nvm/nvm.plugin.zsh
791@@ -16,7 +16,7 @@ if [[ -z "$NVM_DIR" ]]; then
792   fi
793 fi
794 
795-if [[ -z "$NVM_DIR" ]] || [[ ! -f "$NVM_DIR/nvm.sh" ]]; then 
796+if [[ -z "$NVM_DIR" ]] || [[ ! -f "$NVM_DIR/nvm.sh" ]]; then
797   return
798 fi
799 
800diff --git a/plugins/otp/README.md b/plugins/otp/README.md
801index 8331fd02b4c306fc6e9dafd03be2746cacdd3f86..52ad9525bc192671a1fffe7a3fb5bda2ce99411a 100644
802--- a/plugins/otp/README.md
803+++ b/plugins/otp/README.md
804@@ -16,7 +16,7 @@ Provided aliases:
805   email address). Then the OTP key needs to be pasted, followed by a CTRL+D character
806   inserted on an empty line.
807 
808-- `ot`: generates a MFA code based on the given key and copies it to the clipboard 
809+- `ot`: generates a MFA code based on the given key and copies it to the clipboard
810   (on Linux it relies on xsel, on MacOS X it uses pbcopy instead).
811 
812 The plugin uses `$HOME/.otp` to store its internal files.
813diff --git a/plugins/pm2/_pm2 b/plugins/pm2/_pm2
814index faa6a340474baa47c42c5885fbefbb8bd7c74eda..66320b810e25fd127807149369e59ceb05d419b1 100644
815--- a/plugins/pm2/_pm2
816+++ b/plugins/pm2/_pm2
817@@ -79,7 +79,7 @@ _id_names() {
818     local app_list
819     app_list=`pm2 list -m`
820 
821-    local -a names ids 
822+    local -a names ids
823     names=(`echo $app_list | grep '+---' | awk '{print $2}'`)
824     ids=(`echo $app_list | grep 'pm2 id' | awk '{print $4}'`)
825 
826diff --git a/plugins/poetry-env/README.md b/plugins/poetry-env/README.md
827index a7d16563ed69204e4bf8b9182710c22a112df0f3..bd99d2a913647cadbc9eaf5a51551337f6a4e721 100644
828--- a/plugins/poetry-env/README.md
829+++ b/plugins/poetry-env/README.md
830@@ -1,6 +1,6 @@
831 # Poetry Environment Plugin
832 
833-This plugin automatically changes poetry environment when you cd into or out of the project directory. 
834+This plugin automatically changes poetry environment when you cd into or out of the project directory.
835 Note: Script looks for pyproject.toml file to determine poetry if its a poetry environment
836 
837 To use it, add `poetry-env` to the plugins array in your zshrc file:
838diff --git a/plugins/ros/_ros b/plugins/ros/_ros
839index 6a04d3c8f53794d4bce5167b52c9ecd0b5dcb8f5..c73a7b353d53b8b5ca4d38f50e8942ac2512e01e 100644
840--- a/plugins/ros/_ros
841+++ b/plugins/ros/_ros
842@@ -18,7 +18,7 @@ _1st_arguments=(
843 'config:Get and set options'
844 'version:Show the roswell version information'
845 "help:Use \"ros help [command]\" for more information about a command."$'\n\t\t'"Use \"ros help [topic]\" for more information about the topic."
846-) 
847+)
848 
849 #local expl
850 
851diff --git a/plugins/sbt/sbt.plugin.zsh b/plugins/sbt/sbt.plugin.zsh
852index 851302c68740aecc0717cdaa69bae3485a809277..1e977140b4bc2d7c25cf8d199b893ffdffa0fb21 100644
853--- a/plugins/sbt/sbt.plugin.zsh
854+++ b/plugins/sbt/sbt.plugin.zsh
855@@ -4,7 +4,7 @@
856 #        AUTHOR:  Mirko Caserta (mirko.caserta@gmail.com)
857 #       VERSION:  1.0.2
858 # ------------------------------------------------------------------------------
859- 
860+
861 # aliases - mnemonic: prefix is 'sb'
862 alias sbc='sbt compile'
863 alias sbcc='sbt clean compile'
864diff --git a/plugins/screen/screen.plugin.zsh b/plugins/screen/screen.plugin.zsh
865index c1db8ad928811f2bcdcc0daa6d9935e66a7174fd..26531c40b800ee79f26391f018dd494b9199ecf4 100644
866--- a/plugins/screen/screen.plugin.zsh
867+++ b/plugins/screen/screen.plugin.zsh
868@@ -8,7 +8,7 @@ if [[ "$TERM" == screen* ]]; then
869     _GET_HOST='echo $HOST | sed "s/\..*//"'
870   fi
871 
872-  # use the current user as the prefix of the current tab title 
873+  # use the current user as the prefix of the current tab title
874   TAB_TITLE_PREFIX='"`'$_GET_HOST'`:`'$_GET_PATH' | sed "s:..*/::"`$PROMPT_CHAR"'
875   # when at the shell prompt, show a truncated version of the current path (with
876   # standard ~ replacement) as the rest of the title.
877diff --git a/plugins/singlechar/singlechar.plugin.zsh b/plugins/singlechar/singlechar.plugin.zsh
878index d4b0b6735136582c956829665ee36db698d45fca..6d785d9e1f8d20c70918bcaaad70815a8f950db2 100644
879--- a/plugins/singlechar/singlechar.plugin.zsh
880+++ b/plugins/singlechar/singlechar.plugin.zsh
881@@ -1,5 +1,5 @@
882 ###########################
883-# Settings 
884+# Settings
885 
886 # These can be overwritten any time.
887 # If they are not set yet, they will be
888diff --git a/plugins/systemadmin/README.md b/plugins/systemadmin/README.md
889index 3a9d9de661840454ec97446b0c3d58e6b79bd5d5..bd6b0876053b269ae686f7470214775466dc613c 100644
890--- a/plugins/systemadmin/README.md
891+++ b/plugins/systemadmin/README.md
892@@ -1,7 +1,7 @@
893 # Systemadmin plugin
894 
895 This plugin adds a series of aliases and functions which make a System Administrator's life easier.
896- 
897+
898 To use it, add `systemadmin` to the plugins array in your zshrc file:
899 
900 ```zsh
901diff --git a/plugins/thor/README.md b/plugins/thor/README.md
902index 09c705d9a9027ec36c08c32c8303a2171892217e..484c88b843502a2918fedf60cb962c3368ade573 100644
903--- a/plugins/thor/README.md
904+++ b/plugins/thor/README.md
905@@ -1,6 +1,6 @@
906 # Thor plugin
907 
908-This plugin adds completion for [Thor](http://whatisthor.com/), 
909+This plugin adds completion for [Thor](http://whatisthor.com/),
910 a ruby toolkit for building powerful command-line interfaces.
911 
912 To use it, add `thor` to the plugins array in your zshrc file: