{"id":14982911,"url":"https://github.com/yinnx/cmd-wrapped","last_synced_at":"2025-05-14T04:07:49.784Z","repository":{"id":214668820,"uuid":"737071068","full_name":"YiNNx/cmd-wrapped","owner":"YiNNx","description":"👩‍💻 A CLI Tool for Command Line Insights","archived":false,"fork":false,"pushed_at":"2025-03-22T09:52:47.000Z","size":685,"stargazers_count":1144,"open_issues_count":12,"forks_count":29,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-11T23:35:56.284Z","etag":null,"topics":["atuin","bash","cli","commandline","fish","rust","shell","zsh"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/cmd-wrapped","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YiNNx.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-29T18:13:52.000Z","updated_at":"2025-05-01T14:26:18.000Z","dependencies_parsed_at":"2024-11-15T13:52:57.314Z","dependency_job_id":"332a469c-529e-4ff3-abbe-78b4917f7a18","html_url":"https://github.com/YiNNx/cmd-wrapped","commit_stats":{"total_commits":62,"total_committers":9,"mean_commits":6.888888888888889,"dds":"0.27419354838709675","last_synced_commit":"75d10ed78f9bb9e96ed153b6bfa8605c62618a11"},"previous_names":["yinnx/cmd-wrapped"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YiNNx%2Fcmd-wrapped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YiNNx%2Fcmd-wrapped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YiNNx%2Fcmd-wrapped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YiNNx%2Fcmd-wrapped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YiNNx","download_url":"https://codeload.github.com/YiNNx/cmd-wrapped/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253650801,"owners_count":21942218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atuin","bash","cli","commandline","fish","rust","shell","zsh"],"created_at":"2024-09-24T14:06:23.991Z","updated_at":"2025-05-14T04:07:49.762Z","avatar_url":"https://github.com/YiNNx.png","language":"Rust","readme":"# cmd-wrapped\n\n\u003cp\u003e\n\t\u003cimg alt=\"Stars\" src=\"https://img.shields.io/github/stars/YiNNx/cmd-wrapped?style=flat-square\u0026color=68BDB7\u0026labelColor=444B5A\"\u003e\n\t\u0026nbsp;\n\t\u003cimg alt=\"Release\" src=\"https://img.shields.io/github/v/release/YiNNx/cmd-wrapped?style=flat-square\u0026color=93AF63\u0026labelColor=444B5A\"\u003e\n\t\u0026nbsp;\n\t\u003cimg alt=\"Release\" src=\"https://img.shields.io/crates/v/cmd-wrapped.svg?style=flat-square\u0026color=C5AB81\u0026labelColor=444B5A\"\u003e\n\t\u0026nbsp;\n\u003c/p\u003e\n\n一个用于查看 shell 历史记录统计信息的 CLI，支持 zsh、bash、fish 和 atuin。\n\n\u003cimg src=\"https://github.com/user-attachments/assets/fa34598f-3b8c-4f90-8569-7724df787b1c\" height=\"750\" /\u003e\n\n## 安装\n\n- **使用 [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)**\n\n```shell\ncargo install cmd-wrapped\n```\n\n- **从 [Release](https://github.com/YiNNx/cmd-wrapped/releases/latest) 下载**\n\n解压，赋予执行权限，然后在终端中运行二进制文件。\n\n- **Archlinux**\n\n```shell\nyay -S cmd-wrapped\n```\n\n- **Nix❄️**\n\n```nix\nnix run nixpkgs#cmd-wrapped\n```\n\n## 使用\n\n```sh\n# 获取当前统计数据\ncmd-wrapped\n\n# 获取特定年份的年度 shell 历史统计数据\ncmd-wrapped 2024\n\n# 指定目标 shell\ncmd-wrapped -s \u003cshell\u003e\n```\n\n对 `\u003cshell\u003e` 支持的选项：`zsh`、`bash`、`fish`、`atuin`。\n\n\u003e [!NOTE]\n\u003e\n\u003e 在某些情况下，cmd-wrapped 可能无法输出正确的数据（例如 [所有输出均为 0](https://github.com/YiNNx/cmd-wrapped/issues/3)）。这是因为它依赖于每个命令的时间戳记录，有时需要额外配置特定选项：\n\u003e\n\u003e - 对于 Zsh - [EXTENDED_HISTORY](https://zsh.sourceforge.io/Doc/Release/Options.html#History)（oh-my-zsh 默认启用）\n\u003e - 对于 Bash - [HISTTIMEFORMAT](https://www.gnu.org/software/bash/manual/bash.html#index-HISTTIMEFORMAT)\n\u003e\n\u003e **在配置选项之前执行的命令将不会记录时间戳，这将影响 cmd-wrapped 的统计数据**。\n\n## 致谢与许可证\n\n- 特别感谢 [@jyi2ya](https://github.com/jyi2ya) 的绝妙想法！\n- 许可证：[MIT](https://github.com/YiNNx/cmd-wrapped/blob/master/LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinnx%2Fcmd-wrapped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyinnx%2Fcmd-wrapped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinnx%2Fcmd-wrapped/lists"}