macOS
brew install thefucklocal Homebrew formula metadata
sudo port install thefuckMacPorts ports tree · python/thefuck/Portfile · ソース: api.github.com
brew
thefuck のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install thefucklocal Homebrew formula metadata
sudo port install thefuckMacPorts ports tree · python/thefuck/Portfile · ソース: api.github.com
sudo apk add thefuckAlpine Linux edge package indexes · thefuck · ソース: dl-cdn.alpinelinux.org
sudo apt install thefuckDebian stable package indexes · thefuck · ソース: deb.debian.org
sudo dnf install thefuckFedora Rawhide package metadata · thefuck · ソース: dl.fedoraproject.org
sudo pacman -S thefuckArch Linux sync databases · thefuck · ソース: geo.mirror.pkgbuild.com
概要
Programmatically correct mistyped console commands
履歴
The Fuck is a Python command-line utility for correcting a previously failed shell command. Its official README presents it as an app inspired by a tweet and built around the `fuck` alias, which lets a user rerun a corrected version of the last command after errors such as missing `sudo`, misspelled Git subcommands, command-not-found typos, or bad package-manager invocations.
The project grew around a rules engine: the README says it matches the previous command against enabled rules, creates a replacement command, and executes it after confirmation. The rule list spans common developer and system tools, including package managers, Git, Docker, language toolchains, shells, and file utilities, making the project less a spelling corrector than a catalog of everyday terminal failure modes.
The Fuck became unusually visible for a shell helper: the official GitHub page shows tens of thousands of stars and thousands of forks, while the assigned package facts list packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, and other ecosystems. Its README also documents installation through Homebrew, FreeBSD packages, Chromebrew, Arch packages, and pip, which reflects the tool's spread through both language and OS package-manager culture.
The normal workflow is to install the package, add `eval $(thefuck --alias)` to a shell startup file, run a command that fails, and then type the alias to accept or select a corrected command. The README also documents options such as running without confirmation, recursively retrying fixes, customizing rules in `settings.py`, and using environment variables to tune behavior.
For package nerds, The Fuck is interesting because many of its examples and built-in rules encode package-manager ergonomics: it can add `sudo` for `apt-get`, correct Chocolatey package suffixes, fix Homebrew- and system-tool-adjacent command mistakes, and turn common install-time errors into repeatable command rewrites. It is also a good example of a package whose memorable command name helped it become a cross-distro terminal utility.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
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.
Config paths the tool may read or write during local use.
~/.config/thefuck/settings.py実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
fuck | cli | グローバル実行可能ファイル | |
thefuck | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/nvbn/thefuck
インストールメタデータ
| パッケージキー | brew:thefuck |
|---|---|
| バージョン | 3.32 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/thefuck |
| ホームページ | https://github.com/nvbn/thefuck |
| リポジトリ | https://github.com/nvbn/thefuck |
| 上流ドキュメント | https://github.com/nvbn/thefuck#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://files.pythonhosted.org/packages/ac/d0/0c256afd3ba1d05882154d16aa0685018f21c60a6769a496558da7d9d8f1/thefuck-3.32.tar.gz |
| 最終更新 | 2026-07-14T17:14:18+09:00 |
| Pulse | updated |
| 依存関係 | python@3.14 |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
| 注意点 | Add the following to your .bash_profile, .bashrc or .zshrc: eval $(thefuck --alias) For other shells, check https://github.com/nvbn/thefuck/wiki/Shell-aliases |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | thefuck |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
thefuck 3.32-0.3
spelling corrector of console commands
https://github.com/nvbn/thefuck
sudo apt install thefuckthefuck 3.29-0.3ubuntu1
spelling corrector of console commands
https://github.com/nvbn/thefuck
sudo apt install thefuckthefuck 3.32-r6
The Fuck is a magnificent app that corrects errors in previous console commands.
https://github.com/nvbn/thefuck
sudo apk add thefuckthefuck-pyc 3.32-r6
Precompiled Python bytecode for thefuck
https://github.com/nvbn/thefuck
sudo apk add thefuck-pycthefuck 3.32-20.fc44
App that corrects your previous console command
https://github.com/nvbn/thefuck
sudo dnf install thefuckthefuck 3.32-12
Magnificent app which corrects your previous console command
https://github.com/nvbn/thefuck
sudo pacman -S thefuckthefuck
sudo port install thefuckソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.