Skip to content

Commit 37c2622

Browse files
committed
Release v0.7.0
1 parent fec064a commit 37c2622

File tree

8 files changed

+42
-215
lines changed

8 files changed

+42
-215
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: ci
22
on:
33
push:
4-
branches:
5-
- main
4+
branches: [main]
65
pull_request:
76
jobs:
87
ci:
8+
name: ci-${{ matrix.os }}
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:

.github/workflows/build.yml .github/workflows/release.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
name: build
1+
name: release
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
4+
tags: ["v*"]
75
jobs:
86
build:
9-
name: build
7+
name: build-${{ matrix.target }}
108
runs-on: ${{ matrix.os }}
119
strategy:
1210
matrix:
@@ -58,13 +56,13 @@ jobs:
5856
shell: bash
5957
run: |
6058
# Build archive
61-
tmpdir="zoxide-${{ matrix.target }}"
59+
tmpdir="./zoxide-${{ matrix.target }}"
6260
mkdir "$tmpdir/"
6361
cp -r {man,CHANGELOG.md,LICENSE,README.md} "$tmpdir/"
64-
if [ "${{ matrix.target }}" = *"windows"* ]; then
62+
if [[ "${{ matrix.target }}" = *"windows"* ]]; then
6563
asset="$tmpdir.zip"
6664
cp "target/${{ matrix.target }}/release/zoxide.exe" "$tmpdir/"
67-
7z a -mm=Deflate -mfb=258 -mpass=15 -r "$asset" "$tmpdir/"
65+
7z a -mm=Deflate -mfb=258 -mpass=15 -r "$asset" "$tmpdir/*"
6866
else
6967
asset="$tmpdir.tar.gz"
7068
cp "target/${{ matrix.target }}/release/zoxide" "$tmpdir/"
@@ -77,7 +75,6 @@ jobs:
7775
name: ${{ env.ASSET }}
7876
path: ${{ env.ASSET }}
7977
release:
80-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
8178
runs-on: ubuntu-latest
8279
needs: [build]
8380
steps:

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## Unreleased
8+
## [0.7.0] - 2021-05-02
99

1010
### Added
1111

@@ -17,12 +17,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- `zoxide remove -i` now accepts multiple selections.
1818
- `zoxide add` no longer accepts zero parameters.
1919
- `$_ZO_EXCLUDE_DIRS` now defaults to `"$HOME"`.
20+
- Binary releases now use `.zip` on Windows, `.tar.gz` otherwise.
2021

2122
### Fixed
2223

2324
- `cd -` on fish shells.
2425
- `__zoxide_hook` no longer changes value of `$?` within `$PROMPT_COMMAND` on bash.
2526

27+
### Removed
28+
29+
- GitHub install script.
30+
2631
## [0.6.0] - 2021-04-09
2732

2833
### Added
@@ -220,6 +225,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
220225
- GitHub Actions pipeline to build and upload releases.
221226
- Support for zsh.
222227

228+
[0.7.0]: https://github.com/ajeetdsouza/zoxide/compare/v0.6.0...v0.7.0
223229
[0.6.0]: https://github.com/ajeetdsouza/zoxide/compare/v0.5.0...v0.6.0
224230
[0.5.0]: https://github.com/ajeetdsouza/zoxide/compare/v0.4.3...v0.5.0
225231
[0.4.3]: https://github.com/ajeetdsouza/zoxide/compare/v0.4.2...v0.4.3

Cargo.lock

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zoxide"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = ["Ajeet D'Souza <98ajeet@gmail.com>"]
55
edition = "2018"
66
description = "A smarter cd command"

Makefile

+7-31
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ ifeq ($(CI), true)
22
ci_color_always := --color=always
33
endif
44

5-
ifeq ($(RELEASE), true)
6-
build_flags := --release
7-
endif
8-
95
ifeq ($(OS), Windows_NT)
106
NIX := false
117
else
@@ -14,50 +10,30 @@ endif
1410

1511
.PHONY: build clean install test uninstall
1612

17-
ifeq ($(NIX), true)
18-
build:
19-
nix-shell --pure --run 'cargo build $(build_flags) $(ci_color_always)'
20-
else
2113
build:
22-
cargo build $(build_flags) $(ci_color_always)
23-
endif
14+
cargo build --release $(ci_color_always)
2415

25-
ifeq ($(NIX), true)
26-
clean:
27-
nix-shell --pure --run 'cargo clean $(ci_color_always)'
28-
else
2916
clean:
3017
cargo clean $(ci_color_always)
31-
endif
3218

33-
ifeq ($(NIX), true)
34-
install:
35-
nix-shell --pure --run 'cargo install --path=. $(ci_color_always)'
36-
else
3719
install:
3820
cargo install --path=. $(ci_color_always)
39-
endif
4021

4122
ifeq ($(NIX), true)
4223
test:
4324
nix-shell --pure --run 'cargo fmt -- --check --files-with-diff $(ci_color_always)'
44-
nix-shell --pure --run 'cargo check --all-features $(build_flags) $(ci_color_always)'
45-
nix-shell --pure --run 'cargo clippy --all-features $(build_flags) $(ci_color_always) -- --deny warnings --deny clippy::all'
46-
nix-shell --pure --run 'cargo test --all-features --no-fail-fast $(build_flags) $(ci_color_always)'
25+
nix-shell --pure --run 'cargo check --all-features --release $(ci_color_always)'
26+
nix-shell --pure --run 'cargo clippy --all-features --release $(ci_color_always) -- --deny warnings --deny clippy::all'
27+
nix-shell --pure --run 'cargo test --all-features --no-fail-fast --release $(ci_color_always)'
4728
nix-shell --pure --run 'cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095'
4829
else
4930
test:
5031
cargo fmt -- --check --files-with-diff $(ci_color_always)
51-
cargo check --all-features $(build_flags) $(ci_color_always)
52-
cargo clippy --all-features $(build_flags) $(ci_color_always) -- --deny warnings --deny clippy::all
53-
cargo test --no-fail-fast $(build_flags) $(ci_color_always)
32+
cargo check --all-features --release $(ci_color_always)
33+
cargo clippy --all-features --release $(ci_color_always) -- --deny warnings --deny clippy::all
34+
cargo test --no-fail-fast --release $(ci_color_always)
5435
cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095
5536
endif
5637

57-
ifeq ($(NIX), true)
58-
uninstall:
59-
nix-shell --pure --run 'cargo uninstall $(ci_color_always)'
60-
else
6138
uninstall:
6239
cargo uninstall $(ci_color_always)
63-
endif

README.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# `zoxide`
22

3-
[![crates.io][crates.io-badge]][crates.io]
4-
53
> A smarter cd command
64
5+
[![crates.io][crates.io-badge]][crates.io]
6+
77
`zoxide` is a blazing fast replacement for your `cd` command, inspired by
88
[`z`][z] and [`z.lua`][z.lua]. It keeps track of the directories you use most
99
frequently, and uses a ranking algorithm to navigate to the best match.
@@ -31,14 +31,8 @@ Read more about the matching algorithm [here][algorithm-matching].
3131
### Step 1: Install `zoxide`
3232

3333
`zoxide` works across all major platforms. If your distribution isn't included
34-
in the list below, you can directly install the binary from GitHub:
35-
36-
```sh
37-
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh
38-
```
39-
40-
If you would rather not run a script, you can download the binary from the
41-
[Releases] page and add it to your `$PATH`.
34+
in the list below, you can download the binary from the [Releases] page and
35+
copy it to your `$PATH`.
4236

4337
#### On Linux
4438

0 commit comments

Comments
 (0)