Magnificent app which corrects your previous console command.

The Fuck Version Build Status Coverage MIT License

The Fuck is a magnificent app, inspired by a @liamosaur tweet, that corrects errors in previous console commands.

Is The Fuck too slow? Try the experimental instant mode!

gif with examples

More examples:

➜ apt-get install vim
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

➜ fuck
sudo apt-get install vim [enter/↑/↓/ctrl+c]
[sudo] password for nvbn:
Reading package lists... Done
...
➜ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin master


➜ fuck
git push --set-upstream origin master [enter/↑/↓/ctrl+c]
Counting objects: 9, done.
...
➜ puthon
No command 'puthon' found, did you mean:
 Command 'python' from package 'python-minimal' (main)
 Command 'python' from package 'python3' (main)
zsh: command not found: puthon

➜ fuck
python [enter/↑/↓/ctrl+c]
Python 3.4.2 (default, Oct  8 2014, 13:08:17)
...
➜ git brnch
git: 'brnch' is not a git command. See 'git --help'.

Did you mean this?
    branch

➜ fuck
git branch [enter/↑/↓/ctrl+c]
* master
➜ lein rpl
'rpl' is not a task. See 'lein help'.

Did you mean this?
         repl

➜ fuck
lein repl [enter/↑/↓/ctrl+c]
nREPL server started on port 54848 on host 127.0.0.1 - nrepl://127.0.0.1:54848
REPL-y 0.3.1
...

If you're not afraid of blindly running corrected commands, the require_confirmation settings option can be disabled:

➜ apt-get install vim
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

➜ fuck
sudo apt-get install vim
[sudo] password for nvbn:
Reading package lists... Done
...

Requirements

  • python (3.4+)
  • pip
  • python-dev

Installation

On OS X, you can install The Fuck via Homebrew (or via Linuxbrew on Linux):

brew install thefuck

On Ubuntu / Mint, install The Fuck with the following commands:

sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install thefuck

On FreeBSD, install The Fuck with the following commands:

pkg install thefuck

On ChromeOS, install The Fuck using chromebrew with the following command:

crew install thefuck

On other systems, install The Fuck by using pip:

pip install thefuck

Alternatively, you may use an OS package manager (OS X, Ubuntu, Arch).

# It is recommended that you place this command in your .bash_profile, .bashrc, .zshrc or other startup script:

eval $(thefuck --alias)
# You can use whatever you want as an alias, like for Mondays:
eval $(thefuck --alias FUCK)

Or in your shell config (Bash, Zsh, Fish, Powershell, tcsh).

Changes are only available in a new shell session. To make changes immediately available, run source ~/.bashrc (or your shell config file like .zshrc).

To run fixed commands without confirmation, use the --yeah option (or just -y for short, or --hard if you're especially frustrated):

fuck --yeah

To fix commands recursively until succeeding, use the -r option:

fuck -r

Updating

pip3 install thefuck --upgrade

Note: Alias functionality was changed in v1.34 of The Fuck

How it works

The Fuck attempts to match the previous command with a rule. If a match is found, a new command is created using the matched rule and executed. The following rules are enabled by default:

  • adb_unknown_command – fixes misspelled commands like adb logcta;
  • ag_literal – adds -Q to ag when suggested;
  • aws_cli – fixes misspelled commands like aws dynamdb scan;
  • az_cli – fixes misspelled commands like az providers;
  • cargo – runs cargo build instead of cargo;
  • cargo_no_command – fixes wrongs commands like cargo buid;
  • cat_dir – replaces cat with ls when you try to cat a directory;
  • cd_correction – spellchecks and correct failed cd commands;
  • cd_mkdir – creates directories before cd'ing into them;
  • cd_parent – changes cd.. to cd ..;
  • chmod_x – add execution bit;
  • choco_install – append common suffixes for chocolatey packages;
  • composer_not_command – fixes composer command name;
  • cp_create_destination – creates a new directory when you attempt to cp or mv to a non existent one
  • cp_omitting_directory – adds -a when you cp directory;
  • cpp11 – adds missing -std=c++11 to g++ or clang++;
  • dirty_untar – fixes tar x command that untarred in the current directory;
  • dirty_unzip – fixes unzip command that unzipped in the current directory;
  • django_south_ghost – adds --delete-ghost-migrations to failed because ghosts django south migration;
  • django_south_merge – adds --merge to inconsistent django south migration;
  • docker_login – executes a docker login and repeats the previous command;
  • docker_not_command – fixes wrong docker commands like docker tags;
  • docker_image_being_used_by_container ‐ removes the container that is using the image before removing the image;
  • dry – fixes repetitions like git git push;
  • fab_command_not_found – fix misspelled fabric commands;
  • fix_alt_space – replaces Alt+Space with Space character;
  • fix_file – opens a file with an error in your $EDITOR;
  • gem_unknown_command – fixes wrong gem commands;
  • git_add – fixes "pathspec 'foo' did not match any file(s) known to git.";
  • git_add_force – adds --force to git add <pathspec>... when paths are .gitignore'd;
  • git_bisect_usage – fixes git bisect strt, git bisect goood, git bisect rset, etc. when bisecting;
  • git_branch_delete – changes git branch -d to git branch -D;
  • git_branch_delete_checked_out – changes git branch -d to git checkout master && git branch -D when trying to delete a checked out branch;
  • git_branch_exists – offers git branch -d foo, git branch -D foo or git checkout foo when creating a branch that already exists;
  • git_branch_list – catches git branch list in place of git branch and removes created branch;
  • git_checkout – fixes branch name or creates new branch;
  • git_clone_git_clone – replaces git clone git clone ... with git clone ...
  • git_commit_amend – offers git commit --amend after previous commit;
  • git_commit_reset – offers git reset HEAD~ after previous commit;
  • git_diff_no_index – adds --no-index to previous git diff on untracked files;
  • git_diff_staged – adds --staged to previous git diff with unexpected output;
  • git_fix_stash – fixes git stash commands (misspelled subcommand and missing save);
  • git_flag_after_filename – fixes fatal: bad flag '...' after filename
  • git_help_aliased – fixes git help <alias> commands replacing with the aliased command;
  • git_hook_bypass – adds --no-verify flag previous to git am, git commit, or git push command;
  • git_lfs_mistype – fixes mistyped git lfs <command> commands;
  • git_merge – adds remote to branch names;
  • git_merge_unrelated – adds --allow-unrelated-histories when required
  • git_not_command – fixes wrong git commands like git brnch;
  • git_pull – sets upstream before executing previous git pull;
  • git_pull_clone – clones instead of pulling when the repo does not exist;
  • git_pull_uncommitted_changes – stashes changes before pulling and pops them afterwards;
  • git_push – adds --set-upstream origin $branch to previous failed git push;
  • git_push_different_branch_names – fixes pushes when local brach name does not match remote branch name;
  • git_push_pull – runs git pull when push was rejected;
  • git_push_without_commits – Creates an initial commit if you forget and only git add ., when setting up a new project;
  • git_rebase_no_changes – runs git rebase --skip instead of git rebase --continue when there are no changes;
  • git_remote_delete – replaces git remote delete remote_name with git remote remove remote_name;
  • git_rm_local_modifications – adds -f or --cached when you try to rm a locally modified file;
  • git_rm_recursive – adds -r when you try to rm a directory;
  • git_rm_staged – adds -f or --cached when you try to rm a file with staged changes
  • git_rebase_merge_dir – offers git rebase (--continue | --abort | --skip) or removing the .git/rebase-merge dir when a rebase is in progress;
  • git_remote_seturl_add – runs git remote add when git remote set_url on nonexistent remote;
  • git_stash – stashes your local modifications before rebasing or switching branch;
  • git_stash_pop – adds your local modifications before popping stash, then resets;
  • git_tag_force – adds --force to git tag <tagname> when the tag already exists;
  • git_two_dashes – adds a missing dash to commands like git commit -amend or git rebase -continue;
  • go_run – appends .go extension when compiling/running Go programs;
  • go_unknown_command – fixes wrong go commands, for example go bulid;
  • gradle_no_task – fixes not found or ambiguous gradle task;
  • gradle_wrapper – replaces gradle with ./gradlew;
  • grep_arguments_order – fixes grep arguments order for situations like grep -lir . test;
  • grep_recursive – adds -r when you try to grep directory;
  • grunt_task_not_found – fixes misspelled grunt commands;
  • gulp_not_task – fixes misspelled gulp tasks;
  • has_exists_script – prepends ./ when script/binary exists;
  • heroku_multiple_apps – add --app <app> to heroku commands like heroku pg;
  • heroku_not_command – fixes wrong heroku commands like heroku log;
  • history – tries to replace command with most similar command from history;
  • hostscli – tries to fix hostscli usage;
  • ifconfig_device_not_found – fixes wrong device names like wlan0 to wlp2s0;
  • java – removes .java extension when running Java programs;
  • javac – appends missing .java when compiling Java files;
  • lein_not_task – fixes wrong lein tasks like lein rpl;
  • long_form_help – changes -h to --help when the short form version is not supported
  • ln_no_hard_link – catches hard link creation on directories, suggest symbolic link;
  • ln_s_order – fixes ln -s arguments order;
  • ls_all – adds -A to ls when output is empty;
  • ls_lah – adds -lah to ls;
  • man – changes manual section;
  • man_no_space – fixes man commands without spaces, for example mandiff;
  • mercurial – fixes wrong hg commands;
  • missing_space_before_subcommand – fixes command with missing space like npminstall;
  • mkdir_p – adds -p when you try to create a directory without parent;
  • mvn_no_command – adds clean package to mvn;
  • mvn_unknown_lifecycle_phase – fixes misspelled life cycle phases with mvn;
  • npm_missing_script – fixes npm custom script name in npm run-script <script>;
  • npm_run_script – adds missing run-script for custom npm scripts;
  • npm_wrong_command – fixes wrong npm commands like npm urgrade;
  • no_command – fixes wrong console commands, for example vom/vim;
  • no_such_file – creates missing directories with mv and cp commands;
  • open – either prepends http:// to address passed to open or create a new file or directory and passes it to open;
  • pip_install – fixes permission issues with pip install commands by adding --user or prepending sudo if necessary;
  • pip_unknown_command – fixes wrong pip commands, for example pip instatl/pip install;
  • php_s – replaces -s by -S when trying to run a local php server;
  • port_already_in_use – kills process that bound port;
  • prove_recursively – adds -r when called with directory;
  • pyenv_no_such_command – fixes wrong pyenv commands like pyenv isntall or pyenv list;
  • python_command – prepends python when you try to run non-executable/without ./ python script;
  • python_execute – appends missing .py when executing Python files;
  • python_module_error – fixes ModuleNotFoundError by trying to pip install that module;
  • quotation_marks – fixes uneven usage of ' and " when containing args';
  • path_from_history – replaces not found path with similar absolute path from history;
  • react_native_command_unrecognized – fixes unrecognized react-native commands;
  • remove_shell_prompt_literal – remove leading shell prompt symbol $, common when copying commands from documentations;
  • remove_trailing_cedilla – remove trailing cedillas ç, a common typo for european keyboard layouts;
  • rm_dir – adds -rf when you try to remove a directory;
  • scm_correction – corrects wrong scm like hg log to git log;
  • sed_unterminated_s – adds missing '/' to sed's s commands;
  • sl_ls – changes sl to ls;
  • ssh_known_hosts – removes host from known_hosts on warning;
  • sudo – prepends sudo to previous command if it failed because of permissions;
  • sudo_command_from_user_path – runs commands from users $PATH with sudo;
  • switch_lang – switches command from your local layout to en;
  • systemctl – correctly orders parameters of confusing systemctl;
  • terraform_init.py – run terraform init before plan or apply;
  • test.py – runs py.test instead of test.py;
  • touch – creates missing directories before "touching";
  • tsuru_login – runs tsuru login if not authenticated or session expired;
  • tsuru_not_command – fixes wrong tsuru commands like tsuru shell;
  • tmux – fixes tmux commands;
  • unknown_command – fixes hadoop hdfs-style "unknown command", for example adds missing '-' to the command on hdfs dfs ls;
  • unsudo – removes sudo from previous command if a process refuses to run on super user privilege.
  • vagrant_up – starts up the vagrant instance;
  • whois – fixes whois command;
  • workon_doesnt_exists – fixes virtualenvwrapper env name os suggests to create new.
  • yarn_alias – fixes aliased yarn commands like yarn ls;
  • yarn_command_not_found – fixes misspelled yarn commands;
  • yarn_command_replaced – fixes replaced yarn commands;
  • yarn_help – makes it easier to open yarn documentation;

The following rules are enabled by default on specific platforms only:

  • apt_get – installs app from apt if it not installed (requires python-commandnotfound / python3-commandnotfound);
  • apt_get_search – changes trying to search using apt-get with searching using apt-cache;
  • apt_invalid_operation – fixes invalid apt and apt-get calls, like apt-get isntall vim;
  • apt_list_upgradable – helps you run apt list --upgradable after apt update;
  • apt_upgrade – helps you run apt upgrade after apt list --upgradable;
  • brew_cask_dependency – installs cask dependencies;
  • brew_install – fixes formula name for brew install;
  • brew_reinstall – turns brew install <formula> into brew reinstall <formula>;
  • brew_link – adds --overwrite --dry-run if linking fails;
  • brew_uninstall – adds --force to brew uninstall if multiple versions were installed;
  • brew_unknown_command – fixes wrong brew commands, for example brew docto/brew doctor;
  • brew_update_formula – turns brew update <formula> into brew upgrade <formula>;
  • dnf_no_such_command – fixes mistyped DNF commands;
  • nixos_cmd_not_found – installs apps on NixOS;
  • pacman – installs app with pacman if it is not installed (uses yay or yaourt if available);
  • pacman_invalid_option – replaces lowercase pacman options with uppercase.
  • pacman_not_found – fixes package name with pacman, yay or yaourt.
  • yum_invalid_operation – fixes invalid yum calls, like yum isntall vim;

The following commands are bundled with The Fuck, but are not enabled by default:

  • git_push_force – adds --force-with-lease to a git push (may conflict with git_push_pull);
  • rm_root – adds --no-preserve-root to rm -rf / command.

Creating your own rules

To add your own rule, create a file named your-rule-name.py in ~/.config/thefuck/rules. The rule file must contain two functions:

match(command: Command) -> bool
get_new_command(command: Command) -> str | list[str]

Additionally, rules can contain optional functions:

side_effect(old_command: Command, fixed_command: str) -> None

Rules can also contain the optional variables enabled_by_default, requires_output and priority.

Command has three attributes: script, output and script_parts. Your rule should not change Command.

Rules api changed in 3.0: To access a rule's settings, import it with from thefuck.conf import settings

settings is a special object assembled from ~/.config/thefuck/settings.py, and values from env (see more below).

A simple example rule for running a script with sudo:

def match(command):
    return ('permission denied' in command.output.lower()
            or 'EACCES' in command.output)


def get_new_command(command):
    return 'sudo {}'.format(command.script)

# Optional:
enabled_by_default = True

def side_effect(command, fixed_command):
    subprocess.call('chmod 777 .', shell=True)

priority = 1000  # Lower first, default is 1000

requires_output = True

More examples of rules, utility functions for rules, app/os-specific helpers.

Settings

Several The Fuck parameters can be changed in the file $XDG_CONFIG_HOME/thefuck/settings.py ($XDG_CONFIG_HOME defaults to ~/.config):

  • rules – list of enabled rules, by default thefuck.const.DEFAULT_RULES;
  • exclude_rules – list of disabled rules, by default [];
  • require_confirmation – requires confirmation before running new command, by default True;
  • wait_command – max amount of time in seconds for getting previous command output;
  • no_colors – disable colored output;
  • priority – dict with rules priorities, rule with lower priority will be matched first;
  • debug – enables debug output, by default False;
  • history_limit – numeric value of how many history commands will be scanned, like 2000;
  • alter_history – push fixed command to history, by default True;
  • wait_slow_command – max amount of time in seconds for getting previous command output if it in slow_commands list;
  • slow_commands – list of slow commands;
  • num_close_matches – maximum number of close matches to suggest, by default 3.

An example of settings.py:

rules = ['sudo', 'no_command']
exclude_rules = ['git_push']
require_confirmation = True
wait_command = 10
no_colors = False
priority = {'sudo': 100, 'no_command': 9999}
debug = False
history_limit = 9999
wait_slow_command = 20
slow_commands = ['react-native', 'gradle']
num_close_matches = 5

Or via environment variables:

  • THEFUCK_RULES – list of enabled rules, like DEFAULT_RULES:rm_root or sudo:no_command;
  • THEFUCK_EXCLUDE_RULES – list of disabled rules, like git_pull:git_push;
  • THEFUCK_REQUIRE_CONFIRMATION – require confirmation before running new command, true/false;
  • THEFUCK_WAIT_COMMAND – max amount of time in seconds for getting previous command output;
  • THEFUCK_NO_COLORS – disable colored output, true/false;
  • THEFUCK_PRIORITY – priority of the rules, like no_command=9999:apt_get=100, rule with lower priority will be matched first;
  • THEFUCK_DEBUG – enables debug output, true/false;
  • THEFUCK_HISTORY_LIMIT – how many history commands will be scanned, like 2000;
  • THEFUCK_ALTER_HISTORY – push fixed command to history true/false;
  • THEFUCK_WAIT_SLOW_COMMAND – max amount of time in seconds for getting previous command output if it in slow_commands list;
  • THEFUCK_SLOW_COMMANDS – list of slow commands, like lein:gradle;
  • THEFUCK_NUM_CLOSE_MATCHES – maximum number of close matches to suggest, like 5.

For example:

export THEFUCK_RULES='sudo:no_command'
export THEFUCK_EXCLUDE_RULES='git_pull:git_push'
export THEFUCK_REQUIRE_CONFIRMATION='true'
export THEFUCK_WAIT_COMMAND=10
export THEFUCK_NO_COLORS='false'
export THEFUCK_PRIORITY='no_command=9999:apt_get=100'
export THEFUCK_HISTORY_LIMIT='2000'
export THEFUCK_NUM_CLOSE_MATCHES='5'

Third-party packages with rules

If you'd like to make a specific set of non-public rules, but would still like to share them with others, create a package named thefuck_contrib_* with the following structure:

thefuck_contrib_foo
  thefuck_contrib_foo
    rules
      __init__.py
      *third-party rules*
    __init__.py
    *third-party-utils*
  setup.py

The Fuck will find rules located in the rules module.

Experimental instant mode

The default behavior of The Fuck requires time to re-run previous commands. When in instant mode, The Fuck saves time by logging output with script, then reading the log.

gif with instant mode

Currently, instant mode only supports Python 3 with bash or zsh. zsh's autocorrect function also needs to be disabled in order for thefuck to work properly.

To enable instant mode, add --enable-experimental-instant-mode to the alias initialization in .bashrc, .bash_profile or .zshrc.

For example:

eval $(thefuck --alias --enable-experimental-instant-mode)

Developing

See CONTRIBUTING.md

License MIT

Project License can be found here.

Owner
Vladimir Iakovlev
Software Developer
Vladimir Iakovlev
Comments
  • IndexError when using thefuck with brew install command

    IndexError when using thefuck with brew install command

    The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

    The Fuck 3.32 using Python 3.10.4 and ZSH 5.8.1
    

    Your system (Debian 7, ArchLinux, Windows, etc.):

    macOS 12.4
    

    How to reproduce the bug:

    1.  type in brew install ______ (insert program here that is not a valid formula or cask)
    2. Trigger thefuck using your favorite alias
    3.  Warning appears, text below:
    
        [WARN] Rule brew_install:
    Traceback (most recent call last):
      File "/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/types.py", line 181, in is_match
        if self.match(command):
      File "/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/rules/brew_install.py", line 31, in match
        formula = re.findall(r'Error: No available formula for ([a-z]+)',
    IndexError: list index out of range
    ----------------------------
    

    The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

        DEBUG: Run with settings: {'alter_history': True,
     'debug': True,
     'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
     'exclude_rules': [],
     'excluded_search_path_prefixes': [],
     'history_limit': None,
     'instant_mode': False,
     'no_colors': False,
     'num_close_matches': 3,
     'priority': {},
     'repeat': False,
     'require_confirmation': True,
     'rules': [<const: All rules enabled>],
     'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
     'user_dir': PosixPath('/Users/username/.config/thefuck'),
     'wait_command': 3,
     'wait_slow_command': 15}
    DEBUG: Received output: Warning: No available formula with the name "vs-code".
    Error: No similarly named formulae found.
    ==> Searching for similarly named formulae...
    ==> Searching for a previously deleted formula (in the last month)...
    Error: No previously deleted formula found.
    ==> Searching taps on GitHub...
    Error: No formulae found in taps.
    
    DEBUG: Call: brew install vs-code; with env: {'TERM_SESSION_ID': 'w0t0p0:67B78AAC-50B2-4C5B-A744-6FD9F3733C4E', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.Eefl81qqDp/Listeners', 'LC_TERMINAL_VERSION': '3.4.15', 'COLORFGBG': '15;0', 'ITERM_PROFILE': 'Default', 'XPC_FLAGS': '0x0', 'LANG': 'C', 'PWD': '/Users/username', 'SHELL': '/bin/zsh', '__CFBundleIdentifier': 'com.googlecode.iterm2', 'SECURITYSESSIONID': '186ad', 'TERM_PROGRAM_VERSION': '3.4.15', 'TERM_PROGRAM': 'iTerm.app', 'PATH': '/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin', 'LC_TERMINAL': 'iTerm2', 'COLORTERM': 'truecolor', 'COMMAND_MODE': 'unix2003', 'TERM': 'xterm-256color', 'HOME': '/Users/username', 'TMPDIR': '/var/folders/m8/b4gbyd115jq2k438cv0dxxbw0000gn/T/', 'USER': 'username', 'XPC_SERVICE_NAME': '0', 'LOGNAME': 'username', 'LaunchInstanceID': '569101DB-C0FF-4A34-97AD-BA371DBE6A42', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'ITERM_SESSION_ID': 'w0t0p0:67B78AAC-50B2-4C5B-A744-6FD9F3733C4E', 'SHLVL': '1', 'OLDPWD': '/Users/username', 'HOMEBREW_PREFIX': '/opt/homebrew', 'HOMEBREW_CELLAR': '/opt/homebrew/Cellar', 'HOMEBREW_REPOSITORY': '/opt/homebrew', 'MANPATH': '/opt/homebrew/share/man::', 'INFOPATH': '/opt/homebrew/share/info:', 'ZSH': '/Users/username/.oh-my-zsh', 'PAGER': 'less', 'LESS': '-R', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'P9K_SSH': '0', 'P9K_TTY': 'old', '_P9K_TTY': '/dev/ttys000', 'TF_SHELL': 'zsh', 'TF_ALIAS': 'fuck', 'TF_SHELL_ALIASES': '-=\'cd -\'\n...=../..\n....=../../..\n.....=../../../..\n......=../../../../..\n1=\'cd -1\'\n2=\'cd -2\'\n3=\'cd -3\'\n4=\'cd -4\'\n5=\'cd -5\'\n6=\'cd -6\'\n7=\'cd -7\'\n8=\'cd -8\'\n9=\'cd -9\'\n_=\'sudo \'\nafind=\'ack -il\'\negrep=\'egrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\nfgrep=\'fgrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\ng=git\nga=\'git add\'\ngaa=\'git add --all\'\ngam=\'git am\'\ngama=\'git am --abort\'\ngamc=\'git am --continue\'\ngams=\'git am --skip\'\ngamscp=\'git am --show-current-patch\'\ngap=\'git apply\'\ngapa=\'git add --patch\'\ngapt=\'git apply --3way\'\ngau=\'git add --update\'\ngav=\'git add --verbose\'\ngb=\'git branch\'\ngbD=\'git branch -D\'\ngba=\'git branch -a\'\ngbd=\'git branch -d\'\ngbda=\'git branch --no-color --merged | command grep -vE "^([+*]|\\s*($(git_main_branch)|$(git_develop_branch))\\s*$)" | command xargs git branch -d 2>/dev/null\'\ngbl=\'git blame -b -w\'\ngbnm=\'git branch --no-merged\'\ngbr=\'git branch --remote\'\ngbs=\'git bisect\'\ngbsb=\'git bisect bad\'\ngbsg=\'git bisect good\'\ngbsr=\'git bisect reset\'\ngbss=\'git bisect start\'\ngc=\'git commit -v\'\n\'gc!\'=\'git commit -v --amend\'\ngca=\'git commit -v -a\'\n\'gca!\'=\'git commit -v -a --amend\'\ngcam=\'git commit -a -m\'\n\'gcan!\'=\'git commit -v -a --no-edit --amend\'\n\'gcans!\'=\'git commit -v -a -s --no-edit --amend\'\ngcas=\'git commit -a -s\'\ngcasm=\'git commit -a -s -m\'\ngcb=\'git checkout -b\'\ngcd=\'git checkout $(git_develop_branch)\'\ngcf=\'git config --list\'\ngcl=\'git clone --recurse-submodules\'\ngclean=\'git clean -id\'\ngcm=\'git checkout $(git_main_branch)\'\ngcmsg=\'git commit -m\'\n\'gcn!\'=\'git commit -v --no-edit --amend\'\ngco=\'git checkout\'\ngcor=\'git checkout --recurse-submodules\'\ngcount=\'git shortlog -sn\'\ngcp=\'git cherry-pick\'\ngcpa=\'git cherry-pick --abort\'\ngcpc=\'git cherry-pick --continue\'\ngcs=\'git commit -S\'\ngcsm=\'git commit -s -m\'\ngcss=\'git commit -S -s\'\ngcssm=\'git commit -S -s -m\'\ngd=\'git diff\'\ngdca=\'git diff --cached\'\ngdct=\'git describe --tags $(git rev-list --tags --max-count=1)\'\ngdcw=\'git diff --cached --word-diff\'\ngds=\'git diff --staged\'\ngdt=\'git diff-tree --no-commit-id --name-only -r\'\ngdup=\'git diff @{upstream}\'\ngdw=\'git diff --word-diff\'\ngf=\'git fetch\'\ngfa=\'git fetch --all --prune --jobs=10\'\ngfg=\'git ls-files | grep\'\ngfo=\'git fetch origin\'\ngg=\'git gui citool\'\ngga=\'git gui citool --amend\'\nggpull=\'git pull origin "$(git_current_branch)"\'\nggpur=ggu\nggpush=\'git push origin "$(git_current_branch)"\'\nggsup=\'git branch --set-upstream-to=origin/$(git_current_branch)\'\nghh=\'git help\'\ngignore=\'git update-index --assume-unchanged\'\ngignored=\'git ls-files -v | grep "^[[:lower:]]"\'\ngit-svn-dcommit-push=\'git svn dcommit && git push github $(git_main_branch):svntrunk\'\ngk=\'\\gitk --all --branches &!\'\ngke=\'\\gitk --all $(git log -g --pretty=%h) &!\'\ngl=\'git pull\'\nglg=\'git log --stat\'\nglgg=\'git log --graph\'\nglgga=\'git log --graph --decorate --all\'\nglgm=\'git log --graph --max-count=10\'\nglgp=\'git log --stat -p\'\nglo=\'git log --oneline --decorate\'\ngloburl=\'noglob urlglobber \'\nglod=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\'\\\'\nglods=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\'\\\'\' --date=short\'\nglog=\'git log --oneline --decorate --graph\'\ngloga=\'git log --oneline --decorate --graph --all\'\nglol=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\nglola=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\' --all\'\nglols=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\' --stat\'\nglp=_git_log_prettily\nglum=\'git pull upstream $(git_main_branch)\'\ngm=\'git merge\'\ngma=\'git merge --abort\'\ngmom=\'git merge origin/$(git_main_branch)\'\ngmtl=\'git mergetool --no-prompt\'\ngmtlvim=\'git mergetool --no-prompt --tool=vimdiff\'\ngmum=\'git merge upstream/$(git_main_branch)\'\ngp=\'git push\'\ngpd=\'git push --dry-run\'\ngpf=\'git push --force-with-lease\'\n\'gpf!\'=\'git push --force\'\ngpoat=\'git push origin --all && git push origin --tags\'\ngpr=\'git pull --rebase\'\ngpristine=\'git reset --hard && git clean -dffx\'\ngpsup=\'git push --set-upstream origin $(git_current_branch)\'\ngpu=\'git push upstream\'\ngpv=\'git push -v\'\ngr=\'git remote\'\ngra=\'git remote add\'\ngrb=\'git rebase\'\ngrba=\'git rebase --abort\'\ngrbc=\'git rebase --continue\'\ngrbd=\'git rebase $(git_develop_branch)\'\ngrbi=\'git rebase -i\'\ngrbm=\'git rebase $(git_main_branch)\'\ngrbo=\'git rebase --onto\'\ngrbom=\'git rebase origin/$(git_main_branch)\'\ngrbs=\'git rebase --skip\'\ngrep=\'grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\ngrev=\'git revert\'\ngrh=\'git reset\'\ngrhh=\'git reset --hard\'\ngrm=\'git rm\'\ngrmc=\'git rm --cached\'\ngrmv=\'git remote rename\'\ngroh=\'git reset origin/$(git_current_branch) --hard\'\ngrrm=\'git remote remove\'\ngrs=\'git restore\'\ngrset=\'git remote set-url\'\ngrss=\'git restore --source\'\ngrst=\'git restore --staged\'\ngrt=\'cd "$(git rev-parse --show-toplevel || echo .)"\'\ngru=\'git reset --\'\ngrup=\'git remote update\'\ngrv=\'git remote -v\'\ngsb=\'git status -sb\'\ngsd=\'git svn dcommit\'\ngsh=\'git show\'\ngsi=\'git submodule init\'\ngsps=\'git show --pretty=short --show-signature\'\ngsr=\'git svn rebase\'\ngss=\'git status -s\'\ngst=\'git status\'\ngsta=\'git stash push\'\ngstaa=\'git stash apply\'\ngstall=\'git stash --all\'\ngstc=\'git stash clear\'\ngstd=\'git stash drop\'\ngstl=\'git stash list\'\ngstp=\'git stash pop\'\ngsts=\'git stash show --text\'\ngstu=\'gsta --include-untracked\'\ngsu=\'git submodule update\'\ngsw=\'git switch\'\ngswc=\'git switch -c\'\ngswd=\'git switch $(git_develop_branch)\'\ngswm=\'git switch $(git_main_branch)\'\ngtl=\'gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl\'\ngts=\'git tag -s\'\ngtv=\'git tag | sort -V\'\ngunignore=\'git update-index --no-assume-unchanged\'\ngunwip=\'git log -n 1 | grep -q -c "\\-\\-wip\\-\\-" && git reset HEAD~1\'\ngup=\'git pull --rebase\'\ngupa=\'git pull --rebase --autostash\'\ngupav=\'git pull --rebase --autostash -v\'\ngupv=\'git pull --rebase -v\'\ngwch=\'git whatchanged -p --abbrev-commit --pretty=medium\'\ngwip=\'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"\'\nhidefiles=\'defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder\'\nhistory=omz_history\nl=\'ls -lah\'\nla=\'ls -lAh\'\nll=\'ls -lh\'\nls=\'ls -G\'\nlsa=\'ls -lah\'\nmd=\'mkdir -p\'\nofd=\'open_command $PWD\'\npip=\'noglob pip\'\npipir=\'pip install -r requirements.txt\'\npipreq=\'pip freeze > requirements.txt\'\nrd=rmdir\nrun-help=man\nshowfiles=\'defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder\'\nwhich-command=whence', 'PYTHONIOENCODING': 'utf-8', 'THEFUCK_DEBUG': 'true', 'TF_HISTORY': 'brew install adobe-reader\nfuck\nbrew install adobe-acrobat-dc\nfuck\nthefuck --version\nbrew install vs-code\nfuck\nexport THEFUCK_DEBUG=true\nthefuck\nbrew install vs-code', '_': '/opt/homebrew/bin/thefuck', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:03.026073
    DEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000602
    DEBUG: Importing rule: ag_literal; took: 0:00:00.000515
    DEBUG: Importing rule: apt_get; took: 0:00:00.000996
    DEBUG: Importing rule: apt_get_search; took: 0:00:00.000180
    DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000476
    DEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000156
    DEBUG: Importing rule: apt_upgrade; took: 0:00:00.000243
    DEBUG: Importing rule: aws_cli; took: 0:00:00.000139
    DEBUG: Importing rule: az_cli; took: 0:00:00.000141
    DEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.000385
    DEBUG: Importing rule: brew_install; took: 0:00:00.000151
    DEBUG: Importing rule: brew_link; took: 0:00:00.000140
    DEBUG: Importing rule: brew_reinstall; took: 0:00:00.000363
    DEBUG: Importing rule: brew_uninstall; took: 0:00:00.000140
    DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000124
    DEBUG: Importing rule: brew_update_formula; took: 0:00:00.000126
    DEBUG: Importing rule: cargo; took: 0:00:00.000101
    DEBUG: Importing rule: cargo_no_command; took: 0:00:00.000124
    DEBUG: Importing rule: cat_dir; took: 0:00:00.000122
    DEBUG: Importing rule: cd_correction; took: 0:00:00.000826
    DEBUG: Importing rule: cd_cs; took: 0:00:00.000256
    DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000234
    DEBUG: Importing rule: cd_parent; took: 0:00:00.000127
    DEBUG: Importing rule: chmod_x; took: 0:00:00.000112
    DEBUG: Importing rule: choco_install; took: 0:00:00.000247
    DEBUG: Importing rule: composer_not_command; took: 0:00:00.000180
    DEBUG: Importing rule: conda_mistype; took: 0:00:00.000158
    DEBUG: Importing rule: cp_create_destination; took: 0:00:00.000159
    DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000172
    DEBUG: Importing rule: cpp11; took: 0:00:00.000138
    DEBUG: Importing rule: dirty_untar; took: 0:00:00.001097
    DEBUG: Importing rule: dirty_unzip; took: 0:00:00.000162
    DEBUG: Importing rule: django_south_ghost; took: 0:00:00.000097
    DEBUG: Importing rule: django_south_merge; took: 0:00:00.000223
    DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.000418
    DEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.000135
    DEBUG: Importing rule: docker_login; took: 0:00:00.000133
    DEBUG: Importing rule: docker_not_command; took: 0:00:00.000207
    DEBUG: Importing rule: dry; took: 0:00:00.000092
    DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000201
    DEBUG: Importing rule: fix_alt_space; took: 0:00:00.000156
    DEBUG: Importing rule: fix_file; took: 0:00:00.001773
    DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000304
    DEBUG: Importing rule: git_add; took: 0:00:00.000275
    DEBUG: Importing rule: git_add_force; took: 0:00:00.000117
    DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000115
    DEBUG: Importing rule: git_branch_0flag; took: 0:00:00.000243
    DEBUG: Importing rule: git_branch_delete; took: 0:00:00.000105
    DEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.000117
    DEBUG: Importing rule: git_branch_exists; took: 0:00:00.000114
    DEBUG: Importing rule: git_branch_list; took: 0:00:00.000107
    DEBUG: Importing rule: git_checkout; took: 0:00:00.000121
    DEBUG: Importing rule: git_clone_git_clone; took: 0:00:00.000104
    DEBUG: Importing rule: git_commit_add; took: 0:00:00.000157
    DEBUG: Importing rule: git_commit_amend; took: 0:00:00.000106
    DEBUG: Importing rule: git_commit_reset; took: 0:00:00.000104
    DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000103
    DEBUG: Importing rule: git_diff_staged; took: 0:00:00.000114
    DEBUG: Importing rule: git_fix_stash; took: 0:00:00.000108
    DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000109
    DEBUG: Importing rule: git_help_aliased; took: 0:00:00.000107
    DEBUG: Importing rule: git_hook_bypass; took: 0:00:00.000247
    DEBUG: Importing rule: git_lfs_mistype; took: 0:00:00.000103
    DEBUG: Importing rule: git_main_master; took: 0:00:00.000106
    DEBUG: Importing rule: git_merge; took: 0:00:00.000101
    DEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000108
    DEBUG: Importing rule: git_not_command; took: 0:00:00.000104
    DEBUG: Importing rule: git_pull; took: 0:00:00.000111
    DEBUG: Importing rule: git_pull_clone; took: 0:00:00.000130
    DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000104
    DEBUG: Importing rule: git_push; took: 0:00:00.000155
    DEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000145
    DEBUG: Importing rule: git_push_force; took: 0:00:00.000109
    DEBUG: Importing rule: git_push_pull; took: 0:00:00.000101
    DEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000089
    DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000104
    DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000156
    DEBUG: Importing rule: git_remote_delete; took: 0:00:00.000101
    DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000088
    DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000100
    DEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000096
    DEBUG: Importing rule: git_rm_staged; took: 0:00:00.000097
    DEBUG: Importing rule: git_stash; took: 0:00:00.000101
    DEBUG: Importing rule: git_stash_pop; took: 0:00:00.000097
    DEBUG: Importing rule: git_tag_force; took: 0:00:00.000103
    DEBUG: Importing rule: git_two_dashes; took: 0:00:00.000125
    DEBUG: Importing rule: go_run; took: 0:00:00.000100
    DEBUG: Importing rule: go_unknown_command; took: 0:00:00.000155
    DEBUG: Importing rule: gradle_no_task; took: 0:00:00.000214
    DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000119
    DEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000108
    DEBUG: Importing rule: grep_recursive; took: 0:00:00.000245
    DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000252
    DEBUG: Importing rule: gulp_not_task; took: 0:00:00.000157
    DEBUG: Importing rule: has_exists_script; took: 0:00:00.000111
    DEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000099
    DEBUG: Importing rule: heroku_not_command; took: 0:00:00.000102
    DEBUG: Importing rule: history; took: 0:00:00.000073
    DEBUG: Importing rule: hostscli; took: 0:00:00.000122
    DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000113
    DEBUG: Importing rule: java; took: 0:00:00.000136
    DEBUG: Importing rule: javac; took: 0:00:00.000113
    DEBUG: Importing rule: lein_not_task; took: 0:00:00.000155
    DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000148
    DEBUG: Importing rule: ln_s_order; took: 0:00:00.000103
    DEBUG: Importing rule: long_form_help; took: 0:00:00.000077
    DEBUG: Importing rule: ls_all; took: 0:00:00.000205
    DEBUG: Importing rule: ls_lah; took: 0:00:00.000095
    DEBUG: Importing rule: man; took: 0:00:00.000104
    DEBUG: Importing rule: man_no_space; took: 0:00:00.000080
    DEBUG: Importing rule: mercurial; took: 0:00:00.000102
    DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000076
    DEBUG: Importing rule: mkdir_p; took: 0:00:00.000108
    DEBUG: Importing rule: mvn_no_command; took: 0:00:00.000093
    DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000114
    DEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.000297
    DEBUG: Importing rule: no_command; took: 0:00:00.000120
    DEBUG: Importing rule: no_such_file; took: 0:00:00.000079
    DEBUG: Importing rule: npm_missing_script; took: 0:00:00.000293
    DEBUG: Importing rule: npm_run_script; took: 0:00:00.000255
    DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000120
    DEBUG: Importing rule: omnienv_no_such_command; took: 0:00:00.000236
    DEBUG: Importing rule: open; took: 0:00:00.000119
    DEBUG: Importing rule: pacman; took: 0:00:00.000284
    DEBUG: Importing rule: pacman_invalid_option; took: 0:00:00.000127
    DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000088
    DEBUG: Importing rule: path_from_history; took: 0:00:00.000101
    DEBUG: Importing rule: php_s; took: 0:00:00.000103
    DEBUG: Importing rule: pip_install; took: 0:00:00.000110
    DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000105
    DEBUG: Importing rule: port_already_in_use; took: 0:00:00.000134
    DEBUG: Importing rule: prove_recursively; took: 0:00:00.000203
    DEBUG: Importing rule: python_command; took: 0:00:00.000143
    DEBUG: Importing rule: python_execute; took: 0:00:00.000190
    DEBUG: Importing rule: python_module_error; took: 0:00:00.000075
    DEBUG: Importing rule: quotation_marks; took: 0:00:00.000109
    DEBUG: Importing rule: rails_migrations_pending; took: 0:00:00.000071
    DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000133
    DEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000082
    DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000072
    DEBUG: Importing rule: rm_dir; took: 0:00:00.000095
    DEBUG: Importing rule: rm_root; took: 0:00:00.000087
    DEBUG: Importing rule: scm_correction; took: 0:00:00.000098
    DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000100
    DEBUG: Importing rule: sl_ls; took: 0:00:00.000075
    DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000092
    DEBUG: Importing rule: sudo; took: 0:00:00.000086
    DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000148
    DEBUG: Importing rule: switch_lang; took: 0:00:00.000227
    DEBUG: Importing rule: systemctl; took: 0:00:00.000116
    DEBUG: Importing rule: terraform_init; took: 0:00:00.000101
    DEBUG: Importing rule: test.py; took: 0:00:00.000071
    DEBUG: Importing rule: tmux; took: 0:00:00.000099
    DEBUG: Importing rule: touch; took: 0:00:00.000101
    DEBUG: Importing rule: tsuru_login; took: 0:00:00.000119
    DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000095
    DEBUG: Importing rule: unknown_command; took: 0:00:00.000081
    DEBUG: Importing rule: unsudo; took: 0:00:00.000079
    DEBUG: Importing rule: vagrant_up; took: 0:00:00.000092
    DEBUG: Importing rule: whois; took: 0:00:00.000191
    DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000120
    DEBUG: Importing rule: wrong_hyphen_before_subcommand; took: 0:00:00.000099
    DEBUG: Importing rule: yarn_alias; took: 0:00:00.000137
    DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000267
    DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000151
    DEBUG: Importing rule: yarn_help; took: 0:00:00.000106
    DEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.000245
    DEBUG: Trying rule: path_from_history; took: 0:00:00.000225
    DEBUG: Trying rule: cd_cs; took: 0:00:00.000039
    DEBUG: Trying rule: dry; took: 0:00:00.000002
    DEBUG: Trying rule: git_stash_pop; took: 0:00:00.000026
    DEBUG: Trying rule: test.py; took: 0:00:00.000001
    DEBUG: Trying rule: adb_unknown_command; took: 0:00:00.000007
    DEBUG: Trying rule: ag_literal; took: 0:00:00.000011
    DEBUG: Trying rule: aws_cli; took: 0:00:00.000009
    DEBUG: Trying rule: az_cli; took: 0:00:00.000009
    DEBUG: Trying rule: brew_cask_dependency; took: 0:00:00.000009
    DEBUG: Trying rule: brew_install; took: 0:00:00.000074
    [WARN] Rule brew_install:
    Traceback (most recent call last):
      File "/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/types.py", line 181, in is_match
        if self.match(command):
      File "/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/rules/brew_install.py", line 31, in match
        formula = re.findall(r'Error: No available formula for ([a-z]+)',
    IndexError: list index out of range
    ----------------------------
    
    DEBUG: Trying rule: brew_link; took: 0:00:00.000015
    DEBUG: Trying rule: brew_reinstall; took: 0:00:00.000015
    DEBUG: Trying rule: brew_uninstall; took: 0:00:00.000008
    DEBUG: Trying rule: brew_unknown_command; took: 0:00:00.000003
    DEBUG: Trying rule: brew_update_formula; took: 0:00:00.000007
    DEBUG: Trying rule: cargo; took: 0:00:00.000001
    DEBUG: Trying rule: cargo_no_command; took: 0:00:00.000009
    DEBUG: Trying rule: cat_dir; took: 0:00:00.000009
    DEBUG: Trying rule: cd_correction; took: 0:00:00.000012
    DEBUG: Trying rule: cd_mkdir; took: 0:00:00.000011
    DEBUG: Trying rule: cd_parent; took: 0:00:00.000001
    DEBUG: Trying rule: chmod_x; took: 0:00:00.000001
    DEBUG: Trying rule: composer_not_command; took: 0:00:00.000009
    DEBUG: Trying rule: conda_mistype; took: 0:00:00.000008
    DEBUG: Trying rule: cp_create_destination; took: 0:00:00.000009
    DEBUG: Trying rule: cp_omitting_directory; took: 0:00:00.000013
    DEBUG: Trying rule: cpp11; took: 0:00:00.000008
    DEBUG: Trying rule: dirty_untar; took: 0:00:00.000008
    DEBUG: Trying rule: dirty_unzip; took: 0:00:00.000008
    DEBUG: Trying rule: django_south_ghost; took: 0:00:00.000001
    DEBUG: Trying rule: django_south_merge; took: 0:00:00.000001
    DEBUG: Trying rule: docker_image_being_used_by_container; took: 0:00:00.000008
    DEBUG: Trying rule: docker_login; took: 0:00:00.000007
    DEBUG: Trying rule: docker_not_command; took: 0:00:00.000010
    DEBUG: Trying rule: fab_command_not_found; took: 0:00:00.000008
    DEBUG: Trying rule: fix_alt_space; took: 0:00:00.000006
    DEBUG: Trying rule: fix_file; took: 0:00:00.000003
    DEBUG: Trying rule: gem_unknown_command; took: 0:00:00.000009
    DEBUG: Trying rule: git_add; took: 0:00:00.000008
    DEBUG: Trying rule: git_add_force; took: 0:00:00.000007
    DEBUG: Trying rule: git_bisect_usage; took: 0:00:00.000007
    DEBUG: Trying rule: git_branch_0flag; took: 0:00:00.000007
    DEBUG: Trying rule: git_branch_delete; took: 0:00:00.000007
    DEBUG: Trying rule: git_branch_delete_checked_out; took: 0:00:00.000006
    DEBUG: Trying rule: git_branch_exists; took: 0:00:00.000007
    DEBUG: Trying rule: git_branch_list; took: 0:00:00.000007
    DEBUG: Trying rule: git_checkout; took: 0:00:00.000007
    DEBUG: Trying rule: git_clone_git_clone; took: 0:00:00.000007
    DEBUG: Trying rule: git_commit_add; took: 0:00:00.000006
    DEBUG: Trying rule: git_commit_amend; took: 0:00:00.000006
    DEBUG: Trying rule: git_commit_reset; took: 0:00:00.000007
    DEBUG: Trying rule: git_diff_no_index; took: 0:00:00.000007
    DEBUG: Trying rule: git_diff_staged; took: 0:00:00.000007
    DEBUG: Trying rule: git_fix_stash; took: 0:00:00.000006
    DEBUG: Trying rule: git_flag_after_filename; took: 0:00:00.000006
    DEBUG: Trying rule: git_help_aliased; took: 0:00:00.000006
    DEBUG: Trying rule: git_lfs_mistype; took: 0:00:00.000006
    DEBUG: Trying rule: git_merge; took: 0:00:00.000006
    DEBUG: Trying rule: git_merge_unrelated; took: 0:00:00.000006
    DEBUG: Trying rule: git_not_command; took: 0:00:00.000007
    DEBUG: Trying rule: git_pull; took: 0:00:00.000007
    DEBUG: Trying rule: git_pull_clone; took: 0:00:00.000006
    DEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00.000007
    DEBUG: Trying rule: git_push; took: 0:00:00.000007
    DEBUG: Trying rule: git_push_different_branch_names; took: 0:00:00.000006
    DEBUG: Trying rule: git_push_pull; took: 0:00:00.000007
    DEBUG: Trying rule: git_push_without_commits; took: 0:00:00.000007
    DEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00.000007
    DEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00.000007
    DEBUG: Trying rule: git_remote_delete; took: 0:00:00.000006
    DEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00.000006
    DEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00.000006
    DEBUG: Trying rule: git_rm_recursive; took: 0:00:00.000006
    DEBUG: Trying rule: git_rm_staged; took: 0:00:00.000007
    DEBUG: Trying rule: git_stash; took: 0:00:00.000007
    DEBUG: Trying rule: git_tag_force; took: 0:00:00.000006
    DEBUG: Trying rule: git_two_dashes; took: 0:00:00.000006
    DEBUG: Trying rule: go_run; took: 0:00:00.000007
    DEBUG: Trying rule: go_unknown_command; took: 0:00:00.000007
    DEBUG: Trying rule: gradle_no_task; took: 0:00:00.000008
    DEBUG: Trying rule: gradle_wrapper; took: 0:00:00.000008
    DEBUG: Trying rule: grep_arguments_order; took: 0:00:00.000008
    DEBUG: Trying rule: grep_recursive; took: 0:00:00.000008
    DEBUG: Trying rule: grunt_task_not_found; took: 0:00:00.000008
    DEBUG: Trying rule: gulp_not_task; took: 0:00:00.000007
    DEBUG: Trying rule: has_exists_script; took: 0:00:00.000020
    DEBUG: Trying rule: heroku_multiple_apps; took: 0:00:00.000009
    DEBUG: Trying rule: heroku_not_command; took: 0:00:00.000007
    DEBUG: Trying rule: hostscli; took: 0:00:00.000011
    DEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00.000007
    DEBUG: Trying rule: java; took: 0:00:00.000008
    DEBUG: Trying rule: javac; took: 0:00:00.000008
    DEBUG: Trying rule: lein_not_task; took: 0:00:00.000012
    DEBUG: Trying rule: ln_no_hard_link; took: 0:00:00.000004
    DEBUG: Trying rule: ln_s_order; took: 0:00:00.000004
    DEBUG: Trying rule: ls_all; took: 0:00:00.000007
    DEBUG: Trying rule: ls_lah; took: 0:00:00.000006
    DEBUG: Trying rule: man; took: 0:00:00.000008
    DEBUG: Trying rule: mercurial; took: 0:00:00.000008
    DEBUG: Trying rule: mkdir_p; took: 0:00:00.000004
    DEBUG: Trying rule: mvn_no_command; took: 0:00:00.000008
    DEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000007
    DEBUG: Trying rule: no_such_file; took: 0:00:00.000298
    DEBUG: Trying rule: open; took: 0:00:00.000012
    DEBUG: Trying rule: pacman_invalid_option; took: 0:00:00.000013
    DEBUG: Trying rule: php_s; took: 0:00:00.000009
    DEBUG: Trying rule: pip_install; took: 0:00:00.000011
    DEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000012
    DEBUG: Trying rule: port_already_in_use; took: 0:00:00.000209
    DEBUG: Trying rule: prove_recursively; took: 0:00:00.000012
    DEBUG: Trying rule: python_command; took: 0:00:00.000006
    DEBUG: Trying rule: python_execute; took: 0:00:00.000008
    DEBUG: Trying rule: python_module_error; took: 0:00:00.000001
    DEBUG: Trying rule: quotation_marks; took: 0:00:00
    DEBUG: Trying rule: rails_migrations_pending; took: 0:00:00
    DEBUG: Trying rule: react_native_command_unrecognized; took: 0:00:00.000008
    DEBUG: Trying rule: remove_shell_prompt_literal; took: 0:00:00.000001
    DEBUG: Trying rule: remove_trailing_cedilla; took: 0:00:00.000001
    DEBUG: Trying rule: rm_dir; took: 0:00:00.000005
    DEBUG: Trying rule: scm_correction; took: 0:00:00.000007
    DEBUG: Trying rule: sed_unterminated_s; took: 0:00:00.000008
    DEBUG: Trying rule: sl_ls; took: 0:00:00.000001
    DEBUG: Trying rule: ssh_known_hosts; took: 0:00:00.000007
    DEBUG: Trying rule: sudo; took: 0:00:00.000011
    DEBUG: Trying rule: sudo_command_from_user_path; took: 0:00:00.000008
    DEBUG: Trying rule: switch_lang; took: 0:00:00.000001
    DEBUG: Trying rule: systemctl; took: 0:00:00.000010
    DEBUG: Trying rule: terraform_init; took: 0:00:00.000008
    DEBUG: Trying rule: tmux; took: 0:00:00.000008
    DEBUG: Trying rule: touch; took: 0:00:00.000007
    DEBUG: Trying rule: tsuru_login; took: 0:00:00.000007
    DEBUG: Trying rule: tsuru_not_command; took: 0:00:00.000007
    DEBUG: Trying rule: unknown_command; took: 0:00:00.000199
    DEBUG: Trying rule: unsudo; took: 0:00:00.000001
    DEBUG: Trying rule: vagrant_up; took: 0:00:00.000010
    DEBUG: Trying rule: whois; took: 0:00:00.000009
    DEBUG: Trying rule: workon_doesnt_exists; took: 0:00:00.000008
    DEBUG: Trying rule: yarn_alias; took: 0:00:00.000008
    DEBUG: Trying rule: yarn_command_not_found; took: 0:00:00.000007
    DEBUG: Trying rule: yarn_command_replaced; took: 0:00:00.000008
    DEBUG: Trying rule: yarn_help; took: 0:00:00.000008
    DEBUG: Trying rule: git_hook_bypass; took: 0:00:00.000007
    DEBUG: Trying rule: git_main_master; took: 0:00:00.000007
    DEBUG: Trying rule: man_no_space; took: 0:00:00.000001
    DEBUG: Trying rule: no_command; took: 0:00:00.000006
    DEBUG: Trying rule: missing_space_before_subcommand; took: 0:00:00.000006
    DEBUG: Trying rule: wrong_hyphen_before_subcommand; took: 0:00:00.000005
    DEBUG: Trying rule: long_form_help; took: 0:00:00.000132
    DEBUG: Trying rule: history; took: 0:00:00.001588
    
  • Prioritise main/master mix ups

    Prioritise main/master mix ups

    Fixing the mix up of branches main and master should have a higher priority than other rules, because it is more logical most of the time. One example:

    $ git checkout main
    error: pathspec 'main' did not match any file(s) known to git
    

    The suggestion git checkout master should have the highest priority, rather than git checkout -b main which is the case now.

  • Upper to lower case

    Upper to lower case

    This rule convert the upper case letters of the command to lower case, only if all the letters of the command are uppercase (which is the most common mistake with upper and lower case letters). For example, if I type $ LS an error will occur. So I will type $ fuck ls [enter/↑/↓/ctrl+c]

  • pnpm does not work

    pnpm does not work

    The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

    The Fuck 3.32 using Python 3.10.2 and PowerShell 5.1.22610.1
    

    Your system (Debian 7, ArchLinux, Windows, etc.):

    OS Name:                   Microsoft Windows 11 Pro
    OS Version:                10.0.22610 N/A Build 22610
    

    How to reproduce the bug:

    Type in pnmp (a misspelling of pnpm) and watch fuck fail to correct it and respond with "No fucks given"
    

    The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

    Here

    If the bug only appears with a specific application, the output of that application and its version:

    pnpm --version
    > 7.0.0
    

    Anything else you think is relevant:

    https://pnpm.io/ is the tool i'm speaking of
    

    image

  • #1259 tar missed argument

    #1259 tar missed argument

    The purpose of this rule is to add arguments to the command - tar - if the user forgets to type them or he / she does not know that they exist.

    For example, if I want to compress the files, which are located in the directory C:/Users, I would type: tar filename.tar C:/Users Of course, this is incorrect. One possible command for what I want to do is: tar -cvf filename.tar C:/Users

    I have also run some tests!

  • Add some info in README.md

    Add some info in README.md

    I believe that this sort text will help new contributors to understand better how the project works and what do they need to do if they want to make a new rule!

Related tags
Simple and convenient console ToDo list app

How do you handle remembering all that loads of plans you are going to realize everyday? Producing tons of paper notes, plastered all over the house?

Dec 30, 2021
A Python-based command prompt concept which includes windows command emulation.

PythonCMD A Python-based command prompt concept which includes windows command emulation. Current features: echo: Input your message and it will be cl

Feb 5, 2022
A command-line based, minimal torrent streaming client made using Python and Webtorrent-cli. Stream your favorite shows straight from the command line.

A command-line based, minimal torrent streaming client made using Python and Webtorrent-cli. Installation pip install -r requirements.txt It use

Mar 1, 2022
Fylm is a wonderful automated command line app for organizing your film media.
Fylm is a wonderful automated command line app for organizing your film media.

Overview Fylm is a wonderful automated command line app for organizing your film media. You can pronounce it Film or File 'em, whichever you like! It

Oct 16, 2021
Bad Apple printed out on the console with Python!

Bad Apple printed out on the console with Python!

May 7, 2022
Enlighten Progress Bar is a console progress bar library for Python.
Enlighten Progress Bar is a console progress bar library for Python.

Overview Enlighten Progress Bar is a console progress bar library for Python. The main advantage of Enlighten is it allows writing to stdout and stder

May 14, 2022
Python library & console tool for controlling Xiaomi smart appliances

python-miio This library (and its accompanying cli tool) can be used to interface with devices using Xiaomi's miIO and MIoT protocols. Getting started

May 23, 2022
Todo list console based application. Todo's save to a seperate file.

Todo list console based application. Todo's save to a seperate file.

Dec 24, 2021
A simple automation script that logs into your kra account and files your taxes with one command

EASY_TAX A simple automation script that logs into your kra account and files your taxes with one command Currently works for Chrome users. Will creat

Sep 23, 2021
Ralph is a command-line tool to fetch, extract, convert and push your tracking logs from various storage backends to your LRS or any other compatible storage or database backend.

Ralph is a command-line tool to fetch, extract, convert and push your tracking logs (aka learning events) from various storage backends to your

May 5, 2022
Limit your docker image size with a simple CLI command. Perfect to be used inside your CI process.

docker-image-size-limit Limit your docker image size with a simple CLI command. Perfect to be used inside your CI process. Read the announcing post. I

May 19, 2022
A cd command that learns - easily navigate directories from the command line

NAME autojump - a faster way to navigate your filesystem DESCRIPTION autojump is a faster way to navigate your filesystem. It works by maintaining a d

May 21, 2022
commandpack - A package of modules for working with commands, command packages, files with command packages.
commandpack - A package of modules for working with commands, command packages, files with command packages.

commandpack Help the project financially: Donate: https://smartlegion.github.io/donate/ Yandex Money: https://yoomoney.ru/to/4100115206129186 PayPal:

Sep 4, 2021
AML Command Transfer. A lightweight tool to transfer any command line to Azure Machine Learning Services

AML Command Transfer (ACT) ACT is a lightweight tool to transfer any command from the local machine to AML or ITP, both of which are Azure Machine Lea

May 2, 2022
Ros command - Unifying the ROS command line tools
Ros command - Unifying the ROS command line tools

Unifying the ROS command line tools One impairment to ROS 2 adoption is that all

Feb 17, 2022
Text based command line webcam photobooth app
Text based command line webcam photobooth app

Skunkbooth Why See it in action Usage Installation Run Media location Contributing Install Poetry Clone the repo Activate poetry shell Install dev dep

May 16, 2022
Command line util for grep.app - Search across a half million git repos
Command line util for grep.app - Search across a half million git repos

grepgithub Command line util for grep.app - Search across a half million git repos Grepgithub uses grep.app API to search GitHub repositories, providi

Apr 20, 2022
A simple command line chat app to communicate via the terminal.

A simple command line chat app to communicate via the terminal. I'm new to networking so sorry if some of my terminology or code is messed up.

Oct 26, 2021
A lightweight Python module and command-line tool for generating NATO APP-6(D) compliant military symbols from both ID codes and natural language names

Python military symbols This is a lightweight Python module, including a command-line script, to generate NATO APP-6(D) compliant military symbol icon

Jan 21, 2022