# 使用 Homebrew, apk, Nix 安装 harsh

查看 harsh 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:harsh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install harsh
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add harsh
```

  证据: Alpine Linux edge package indexes: harsh from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#harsh
```

  证据: nixpkgs package indexes: pkgs/by-name/ha/harsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:harsh
- **软件包管理器:** Homebrew
- **版本:** 0.14.5
- **来源摘要:** Habit tracking for geeks
- **主页:** <https://github.com/wakatara/harsh>
- **仓库:** <https://github.com/wakatara/harsh>
- **最后更新:** 2026-07-27T14:32:23+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- harsh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.14.5
## 项目历史与用法

Harsh Taskmaster is Daryl Manning's minimalist Go command-line habit tracker, built around editable text files, daily prompts, todo urgency, statistics, and long-range consistency graphs.

### 项目历史

Manning publicly released Harsh on May 26, 2020 after using the Rust program habitctl and finding that project no longer active. He kept its simple text-file and Seinfeld-chart ideas, rewrote the concept in Go to reduce build and installation friction, and added skips, warnings, score fixes, and corrected sparklines.

The project continued beyond its initial release series. By 2026 it supported habit end dates for long-range records, structured JSON output for agents and scripts, filtering, statistics, notes and amounts, and shell completions while retaining human-editable storage.

### 采用历史

The launch shipped Homebrew and Snap installation plus cross-platform binaries. The current README adds Arch AUR, DEB, RPM, APK, Go installation, and a one-line installer; supplied metadata also records Homebrew, Alpine, and Nix packaging.

### 使用方式

`harsh ask` records today's habits, `harsh log` renders the last 100 days, and `harsh todo` shows pending habits with urgency. Users own and can directly edit the `habits` and append-only `log` text files, relocate them with `HARSHPATH`, and request structured output with `harsh log --json`.

### 为什么软件包爱好者会关心

Harsh is a durable example of Unix-style personal software: a single Go binary, plain-text state, scriptable JSON, shell completions, and broad binary/package-manager distribution. It is both interactive enough for daily use and transparent enough for backups, Git, editors, and data analysis.

### 时间线

- 2020: Harsh is released as open source on May 26 with Homebrew, Snap, and binary installation.
- 2020: v0.8.1 begins the recorded GitHub release series.
- 2026: End dates and longer-range habit tracking are documented by the maintainer.
- 2026: v0.14.5 is released in June.

### Related projects

- habitctl supplied the core text-file and consistency-graph inspiration for Harsh.
- Emacs org-habits was evaluated by the author but rejected as too complex for his intended workflow.

### 来源

- <https://daryl.wakatara.com/better-habit-tracking-in-harsh/>
- <https://daryl.wakatara.com/harsh-a-minimalist-cli-habit-tracker/>
- <https://github.com/wakatara/harsh#readme>
- <https://github.com/wakatara/harsh/releases>
- source_facts.package-manager


## 安全说明

没有找到 harsh 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/harsh/habits, ~/.config/harsh/log
- Windows: %APPDATA%\harsh\habits, %APPDATA%\harsh\log
## 其他软件包管理器记录

- Nix - harsh: normalized package name match | nixpkgs package indexes: pkgs/by-name/ha/harsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - harsh - 0.8.31-r21: normalized package name match | Alpine Linux edge package indexes: harsh from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Habit tracking for geeks | https://github.com/wakatara/harsh


## Combined YAML source

View the package source record on GitHub. [combined/harsh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/harsh.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
