Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
MACOS_NOTARY_ISSUER_ID: ${{ vars.MACOS_NOTARY_ISSUER_ID }}
MACOS_NOTARY_KEY_ID: ${{ vars.MACOS_NOTARY_KEY_ID }}
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

- name: Upload snapshot dist (dry-run only)
if: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}
Expand Down
28 changes: 28 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,34 @@ nfpms:
- rpm
bindir: /usr/bin

homebrew_casks:
- name: try-bedazzled
binaries:
- try
repository:
owner: hmk
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
homepage: https://github.com/hmk/try-bedazzled
description: A beautiful, themeable directory manager for try experiments
license: BSD-3-Clause
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "chore(cask): bump try-bedazzled to {{ .Tag }}"
caveats: |
To enable the `try` shell function (so Enter actually `cd`s your shell),
add this line to your shell config:

# bash / zsh
eval "$(try init)"

# fish
try init | source

Then restart your shell.

changelog:
sort: asc
filters:
Expand Down
10 changes: 9 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Install

The fast path is the install script in the [README](README.md). This file covers the alternatives.
The fast paths are in the [README](README.md): Homebrew or the install script. This file covers the alternatives.

## Homebrew

```bash
brew install hmk/tap/try-bedazzled
```

This taps `hmk/homebrew-tap` (one-time) and installs the cask. Upgrades work via `brew upgrade try-bedazzled`. The cask prints a one-line shell-config snippet on install — see "Manual shell setup" at the bottom of this file if you missed it.

## Install script options

Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,21 @@ Type to filter. Press Enter to `cd`. Type a new name and press Enter to create.

## Install

**Homebrew** (macOS, Linux):

```bash
brew install hmk/tap/try-bedazzled
```

**curl** (everywhere else):

```bash
curl -fsSL https://raw.githubusercontent.com/hmk/try-bedazzled/main/install.sh | sh
```

Then restart your shell (or `source ~/.zshrc`) and run `try`.

The installer downloads the latest release for your platform, drops the binary in `/usr/local/bin/`, and adds the shell function to your rc file. macOS binaries are signed and notarized.
The curl installer drops the signed-and-notarized binary in `/usr/local/bin/` and adds the shell function to your rc file. The Homebrew formula prints the same one-line shell-config snippet on first install (`brew info try-bedazzled`).

For other install paths (Go, manual download, custom directory), see [INSTALL.md](INSTALL.md).

Expand Down