Skip to content

Commit

Permalink
Merge pull request #155 from mattmc3/v1.9.2
Browse files Browse the repository at this point in the history
v1.9.2
  • Loading branch information
mattmc3 authored Sep 22, 2023
2 parents 0e21ff3 + 7a74b0b commit 16e88d9
Show file tree
Hide file tree
Showing 26 changed files with 33 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.9.1
current_version = 1.9.2
parse = v?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<revision>\d+)
serialize = {major}.{minor}.{revision}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# antidote

[![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg)](/LICENSE)
![version](https://img.shields.io/badge/version-v1.9.1-df5e88)
![version](https://img.shields.io/badge/version-v1.9.2-df5e88)

<a title="GetAntidote"
href="https://getantidote.github.io"
Expand Down
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
11 changes: 0 additions & 11 deletions functions/__antidote_core

This file was deleted.

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
7 changes: 5 additions & 2 deletions functions/__antidote_get_cachedir
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

### 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
result=$HOME/Library/Caches
elif [[ "${OSTYPE}" == (cygwin|msys)* ]]; then
result=${LOCALAPPDATA:-$LocalAppData}
if type cygpath > /dev/null; then
result=$(cygpath "$result")
fi
elif [[ -n "$XDG_CACHE_HOME" ]]; then
result=$XDG_CACHE_HOME
else
result=$HOME/.cache
fi

if [[ -n "$1" ]]; then
if [[ $result == *\\* ]]; then
if [[ $result == *\\* ]] && [[ $result != */* ]]; then
result+="\\$1"
else
result+="/$1"
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
4 changes: 2 additions & 2 deletions functions/__antidote_version
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

### 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 ver='1.9.2'
local gitsha=$(git -C "${0:A:h:h}" rev-parse --short HEAD 2>/dev/null)
[[ -z "$gitsha" ]] || ver="$ver ($gitsha)"
print "antidote version $ver"
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
7 changes: 4 additions & 3 deletions 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 All @@ -27,9 +27,10 @@

local bundledir
local output=()
local bundles=($(antidote-home)/**/.git/..(/N))
local bundles=($(antidote-home)/**/.git(/N))

for bundledir in ${bundles:A}; do
for bundledir in $bundles; do
bundledir=${bundledir:h}
local url=$(git -C "$bundledir" config remote.origin.url)
if (( $#o_dirs )); then
output+=($bundledir)
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
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The `-v/--version` flag displays the current version:
```zsh
% antidote --version
antidote version 1.9.1
antidote version 1.9.2
%
```
Expand Down
2 changes: 1 addition & 1 deletion tests/test_antidote.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ No arg exit status is 2:

```zsh
% antidote --version
antidote version 1.9.1
antidote version 1.9.2
% antidote -v >/dev/null; echo $?
0
% antidote --version >/dev/null; echo $?
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmd_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Bundle updates complete.
Updating antidote...
Antidote self-update complete.

antidote version 1.9.1
antidote version 1.9.2
%
```

Expand Down

0 comments on commit 16e88d9

Please sign in to comment.