Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Command-Line Apps
  3. fuck

fuck

MITPython3.32

A command-line tool that automatically corrects errors in your previous console command.

GitHubGitHub
97.3k stars3.9k forks0 contributors

What is fuck?

The Fuck is a command-line utility that analyzes the output of your last failed command and suggests a corrected version. It saves time and reduces frustration by fixing common typos, missing permissions, incorrect arguments, and other shell mistakes with a simple invocation.

Target Audience

Command-line users, especially developers and system administrators who frequently work in Bash, Zsh, Fish, or other shells and want to reduce time spent on trivial errors.

Value Proposition

Developers choose The Fuck for its extensive library of over 100 built-in rules covering tools like git, apt, docker, and npm, its extensibility with custom rules, and its interactive confirmation that prevents accidental execution of incorrect fixes.

Overview

Magnificent app which corrects your previous console command.

Use Cases

Best For

  • Fixing permission-denied errors by automatically prepending 'sudo' to commands.
  • Correcting misspelled git commands like 'git brnch' to 'git branch'.
  • Adding missing upstream branches when 'git push' fails.
  • Installing packages with apt-get when permission errors occur.
  • Running Python scripts that fail due to command-not-found typos like 'puthon'.
  • Creating directories automatically when commands like 'mkdir' or 'cp' fail due to missing parent directories.

Not Ideal For

  • Scripted or non-interactive environments where command output is not captured for analysis.
  • Teams using proprietary or niche command-line tools without existing rules, requiring custom development.
  • Users with strict security policies that prohibit shell aliasing or automatic command execution.

Pros & Cons

Pros

Comprehensive Error Coverage

With over 100 built-in rules for tools like git, apt, and docker, it automatically fixes common typos, permission issues, and argument errors, as demonstrated in the README examples such as correcting 'git brnch' to 'git branch'.

User Safety Features

Interactive confirmation by default prevents accidental execution of incorrect fixes, and settings allow customization, including the --yeah flag for automatic correction or disabling confirmation entirely.

Extensible Architecture

Supports custom rule creation in Python, enabling users to add corrections for specific workflows, with detailed documentation in the 'Creating your own rules' section.

Cross-Shell Compatibility

Works with Bash, Zsh, Fish, and others via simple alias setup, as shown in the installation instructions for adding eval commands to shell config files.

Cons

Experimental Mode Limitations

Instant mode for faster corrections only supports Python 3 with bash or zsh and requires disabling zsh's autocorrect, limiting its use in diverse or restricted environments.

Setup and Dependency Burden

Requires Python 3.5+, pip, and shell configuration, which can be cumbersome for users on minimal systems or those preferring plug-and-play tools without additional dependencies.

Rule Management Complexity

With numerous rules and configurable settings, tuning enabled rules or priorities might overwhelm casual users, as indicated by the extensive settings.py and environment variable options.

Frequently Asked Questions

Quick Stats

Stars97,282
Forks3,946
Contributors0
Open Issues304
Last commit1 year ago
CreatedSince 2015

Tags

#developer-tools#productivity#cli-tool#shell#python#error-correction#bash#command-line#automation#zsh

Built With

P
Python

Included in

Python290.8kShell36.8kCommand-Line Apps19.2kPowerShell5.4kLinux5.0k
Auto-fetched 22 hours ago

Related Projects

yt-dlpyt-dlp

A feature-rich command-line audio/video downloader

Stars169,030
Forks14,212
Last commit2 days ago
youtube-dlyoutube-dl

Command-line program to download videos from YouTube.com and other video sites

Stars140,457
Forks10,673
Last commit3 months ago
fzffzf

:cherry_blossom: A command-line fuzzy finder

Stars80,921
Forks2,804
Last commit1 day ago
ripgrepripgrep

ripgrep recursively searches directories for a regex pattern while respecting your gitignore

Stars64,877
Forks2,597
Last commit3 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub