Skip to content

Commit

Permalink
Fix local_options
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmc3 committed Aug 7, 2023
1 parent 86ded5a commit 1c9cf6a
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion functions/__antidote_bulk_clone
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Generate background clone commands
#function __antidote_bulk_clone {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

# get a list of clonable repos from a bundle file
awk '
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_bundle_dir
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Get the name of the bundle dir.
#function __antidote_bundle_dir {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

# If the bundle is a repo/URL, then by default we use the legacy antibody format:
# `$ANTIDOTE_HOME/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions`
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_bundle_name
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Get the short name of the bundle.
#function __antidote_bundle_name {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
local MATCH MBEGIN MEND; local -a match mbegin mend # appease 'warn_create_global'
local bundle=$1
local bundle_type="$(__antidote_bundle_type $bundle)"
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_bundle_type
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
### - url - a git repo (URL format)
### - word - a word
#function __antidote_bundle_type {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
local bundle=$1

# Try to expand path bundles with '$' and '~' prefixes so that we get a more
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_filter_defers
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Filter all but the first defer block.
#function __antidote_filter_defers {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
awk '
# filter all but the first time we source zsh-defer (a 4 line if statement)
BEGIN { skip=0; found=0 }
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_get_cachedir
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Get the default cache directory per OS
#function __antidote_get_cachedir {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local result
if [[ "${OSTYPE}" == darwin* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_initfiles
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Get the path to a plugin's init file.
#function __antidote_initfiles {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
typeset -ga reply=()
local dir=${1:A}
local initfiles=($dir/${dir:A:t}.plugin.zsh(N))
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_parse_bundles
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Parse antidote's bundle DSL.
#function __antidote_parse_bundles {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
awk '
BEGIN { RS="[\r\n]" }
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_tourl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Get the url from a repo bundle.
#function __antidote_tourl {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local bundle=$1
local url=$bundle
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_usage
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Print usage.
#function __antidote_usage {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
cat<<EOS
antidote - the cure to slow zsh plugin management
Expand Down
2 changes: 1 addition & 1 deletion functions/__antidote_version
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Get the antidote version.
#function __antidote_version {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
0=${(%):-%x}
local ver='1.9.1'
local gitsha=$(git -C "${0:A:h:h}" rev-parse --short HEAD 2>/dev/null)
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-bundle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
### Clone bundle(s) and generate the static load script.
#function antidote-bundle {
# Download a bundle and prints its Zsh source line.
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local o_help
zparseopts $_adote_zparopt_flags -- h=o_help -help=h || return 1
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-help
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#

#function antidote-help {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local o_help
zparseopts $_adote_zparopt_flags -- h=o_help -help=h || return 1
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-home
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Can be overridden by setting `$ANTIDOTE_HOME`.
#
#function antidote-home {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

typeset -g REPLY=
local o_help
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-install
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# [--pre <func>] [--post <func>]
# [-a|--autoload <path>] <bundle> [<bundlefile>]
#function antidote-install {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local -A flag_to_annotation=(
'-a' autoload
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-list
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# usage: antidote list [-h|--help] [-s|--short] [-d|--dirs] [-u|--url]
#
#function antidote-list {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local o_help o_short o_url o_dirs
zparseopts $_adote_zparopt_flags -- \
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-path
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# usage: antidote path [-h|--help] <bundle>
#
#function antidote-path {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local o_help
zparseopts $_adote_zparopt_flags -- h=o_help -help=h || return 1
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-purge
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# antidote purge [-a|--all]
#
#function antidote-purge {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local o_help o_all
zparseopts $_adote_zparopt_flags -- \
Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-script
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

### Generate the Zsh script to load a plugin.
#function antidote-script {
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts
local MATCH MBEGIN MEND; local -a match mbegin mend # appease 'warn_create_global'
local REPLY=

Expand Down
2 changes: 1 addition & 1 deletion functions/antidote-update
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
#function antidote-update {
0=${(%):-%x}
emulate -L zsh; setopt $_adote_funcopts
emulate -L zsh; setopt local_options $_adote_funcopts

local o_help o_self o_bundles
zparseopts $_adote_zparopt_flags -- \
Expand Down

0 comments on commit 1c9cf6a

Please sign in to comment.