Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No matter what command is given, it says No fucks given #1484

Open
MeverikC opened this issue Dec 23, 2024 · 1 comment
Open

No matter what command is given, it says No fucks given #1484

MeverikC opened this issue Dec 23, 2024 · 1 comment

Comments

@MeverikC
Copy link

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.12.3 and PowerShell 5.1.22621.4391

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

windows 11

How to reproduce the bug:

1. pip install https://github.com/nvbn/thefuck/archive/master.zip
2. thefuck -a fuck
3. puthon
4. fuck

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

PS C:\Users\huawei> fuck --debug
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': WindowsPath('C:/Users/huawei/.config/thefuck'),
 'wait_command': 3,
 'wait_slow_command': 15}
DEBUG: Received output: No fucks given

DEBUG: Call: thefuck debug; with env: {'ALLUSERSPROFILE': 'C:\\ProgramData', 'ANDROID_HOME': 'D:\\adb\\android-sdk-windows;D:\\adb\\android-sdk-windows\\tools;D:\\adb\\android-sdk-windows\\platforms', 'APPCODE_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\appcode.vmoptions', 'APPDATA': 'C:\\Users\\huawei\\AppData\\Roaming', 'AQUA': 'D:\\Aqua\\Aqua 2024.2.1\\bin;', 'CATALINA_HOME': 'D:\\apache-tomcat-10.1.31', 'CHOCOLATEYINSTALL': 'C:\\ProgramData\\chocolatey', 'CHOCOLATEYLASTPATHUPDATE': '133644634997319110', 'CLASSPATH': '.;C:\\Users\\huawei\\Documents\\j2se;C:\\Users\\huawei\\Documents\\j2se\\Array;C:\\Users\\huawei\\Documents\\j2se\\Ex;', 'CLION_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\clion.vmoptions', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMW6432': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'LAPTOP-L5LVT45J', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'DATAGRIP': 'D:\\dg\\DataGrip 2024.1.1\\bin;', 'DATAGRIP_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\datagrip.vmoptions', 'DATASPELL_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\dataspell.vmoptions', 'DEVECOSTUDIO_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\devecostudio.vmoptions', 'DRIVERDATA': 'C:\\Windows\\System32\\Drivers\\DriverData', 'EFC_9732': '1', 'GATEWAY_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\gateway.vmoptions', 'GOLAND_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\goland.vmoptions', 'GROOVY_HOME': 'D:\\groovy\\apache-groovy-sdk-4.0.21\\groovy-4.0.21', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Users\\huawei', 'IDEA_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\idea.vmoptions', 'JAVA_HOME': 'C:\\Program Files\\Java\\jdk-11', 'JETBRAINSCLIENT_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\jetbrainsclient.vmoptions', 'JETBRAINS_CLIENT_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\jetbrains_client.vmoptions', 'LOCALAPPDATA': 'C:\\Users\\huawei\\AppData\\Local', 'LOGONSERVER': '\\\\LAPTOP-L5LVT45J', 'NUMBER_OF_PROCESSORS': '8', 'NVM_HOME': 'C:\\Program Files\\nvm\\nvm', 'NVM_SYMLINK': 'C:\\Program Files\\nodejs', 'ONEDRIVE': 'E:\\oneDrive', 'OS': 'Windows_NT', 'PATH': 'c:\\Users\\huawei\\AppData\\Local\\Programs\\cursor\\resources\\app\\bin;c:\\Users\\huawei\\AppData\\Local\\Programs\\cursor\\resources\\app\\bin;E:\\VM\\bin\\;C:\\Program Files\\Python312\\Scripts\\;C:\\Program Files\\Python312\\;C:\\Windows;C:\\Program Files\\Java\\jdk-11\\bin;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\OpenSSH\\;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;E:\\影刀;C;\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin;D:\\apache-jmeter-5.6.2\\apache-jmeter-5.6.2\\bin;C:\\ProgramData\\chocolatey\\bin;D:\\node_modules\\npm\\bin;D:\\android\\android-sdk-windows\\tools;C:\\Program Files\\dotnet\\;C:\\Users\\huawei;D:\\Download;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\redis\\Redis-x64-3.0.504;E:\\微信开发者工具\\微信web开发者工具\\dll;C:\\Program Fi;es\\Pandoc\\;D:\\groovy\\apache-groovy-sdk-4.0.21\\groovy-4.0.21\\bin;D:\\xshell\\;D:\\xftp\\;C:\\Program Files\\Git\\cmd;C;c:\\Users\\huawei\\AppData\\Local\\Programs\\cursor\\resources\\;E:\\影刀;C:\\Users\\huawei\\AppData\\Local\\Microsoft\\WindowsApps;D:\\FIDDLER;C:\\Users\\huawei\\.dotnet\\tools;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.21.9-hotspot\\bin;C:\\Users\\huawei\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\dg\\DataGrip 2024.1.1\\bin;D:\\pyCharm\\PyCharm 2024.1\\bin;C:\\Users\\huawei\\.dotnet\\tools;D:\\PhpStorm\\PhpStorm 2024.2\\bin;;D:\\webStorm\\WebStorm 2024.2.3\\bin;;C:\\Program Files\\nvm\\nvm;C:\\Program Files\\nodejs;D:\\Aqua\\Aqua 2024.2.1\\bin;', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL', 'PHPSTORM': 'D:\\PhpStorm\\PhpStorm 2024.2\\bin;', 'PHPSTORM_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\phpstorm.vmoptions', 'PROCESSOR_ARCHITECTURE': 'AMD64', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 142 Stepping 12, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '8e0c', 'PROGRAMDATA': 'C:\\ProgramData', 'PROGRAMFILES': 'C:\\Program Files', 'PROGRAMFILES(X86)': 'C:\\Program Files (x86)', 'PROGRAMW6432': 'C:\\Program Files', 'PSMODULEPATH': 'C:\\Users\\huawei\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules', 'PUBLIC': 'C:\\Users\\Public', 'PYCHARM': 'D:\\pyCharm\\PyCharm 2024.1\\bin;', 'PYCHARM COMMUNITY EDITION': 'D:\\PyCharm Community Edition 2023.2\\bin;', 'PYCHARM_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\pycharm.vmoptions', 'PYTHONIOENCODING': 'utf-8', 'RIDER_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\rider.vmoptions', 'RUBYMINE_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\rubymine.vmoptions', 'SESSIONNAME': 'Console', 'SHADOWBOT.1.MUTEX': '60a4c4e43754486b8f59d1a11fe5fc3d', 'SHADOWBOT_CULTURE': 'Zh_CN', 'SHADOWBOT_ROOT_X86': 'E:\\影刀', 'STUDIO_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\studio.vmoptions', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\Users\\huawei\\AppData\\Local\\Temp', 'TMP': 'C:\\Users\\huawei\\AppData\\Local\\Temp', 'USERDOMAIN': 'LAPTOP-L5LVT45J', 'USERDOMAIN_ROAMINGPROFILE': 'LAPTOP-L5LVT45J', 'USERNAME': 'huawei', 'USERPROFILE': 'C:\\Users\\huawei', 'WEBIDE_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\webide.vmoptions', 'WEBSTORM': 'D:\\webStorm\\WebStorm 2024.2.3\\bin;', 'WEBSTORM_VM_OPTIONS': 'D:\\jetbra\\vmoptions\\webstorm.vmoptions', 'WINDIR': 'C:\\WINDOWS', 'ZES_ENABLE_SYSMAN': '1', 'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:01.435797
DEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000962
DEBUG: Importing rule: ag_literal; took: 0:00:00.000998
DEBUG: Importing rule: apt_get; took: 0:00:00.011535
DEBUG: Importing rule: apt_get_search; took: 0:00:00.001631
DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.001896
DEBUG: Importing rule: apt_list_upgradable; took: 0:00:00
DEBUG: Importing rule: apt_upgrade; took: 0:00:00
DEBUG: Importing rule: aws_cli; took: 0:00:00.001000
DEBUG: Importing rule: az_cli; took: 0:00:00
DEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.008507
DEBUG: Importing rule: brew_install; took: 0:00:00.001002
DEBUG: Importing rule: brew_link; took: 0:00:00.000999
DEBUG: Importing rule: brew_reinstall; took: 0:00:00
DEBUG: Importing rule: brew_uninstall; took: 0:00:00
DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.001001
DEBUG: Importing rule: brew_update_formula; took: 0:00:00
DEBUG: Importing rule: cargo; took: 0:00:00.000997
DEBUG: Importing rule: cargo_no_command; took: 0:00:00.001007
DEBUG: Importing rule: cat_dir; took: 0:00:00
DEBUG: Importing rule: cd_correction; took: 0:00:00.003533
DEBUG: Importing rule: cd_cs; took: 0:00:00
DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000980
DEBUG: Importing rule: cd_parent; took: 0:00:00
DEBUG: Importing rule: chmod_x; took: 0:00:00.001000
DEBUG: Importing rule: choco_install; took: 0:00:00.003998
DEBUG: Importing rule: composer_not_command; took: 0:00:00.001001
DEBUG: Importing rule: conda_mistype; took: 0:00:00
DEBUG: Importing rule: cp_create_destination; took: 0:00:00.001002
DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.001002
DEBUG: Importing rule: cpp11; took: 0:00:00.000997
DEBUG: Importing rule: dirty_untar; took: 0:00:00.002000
DEBUG: Importing rule: dirty_unzip; took: 0:00:00.004000
DEBUG: Importing rule: django_south_ghost; took: 0:00:00
DEBUG: Importing rule: django_south_merge; took: 0:00:00.001002
DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.008509
DEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.001000
DEBUG: Importing rule: docker_login; took: 0:00:00.001014
DEBUG: Importing rule: docker_not_command; took: 0:00:00.010507
DEBUG: Importing rule: dry; took: 0:00:00.001002
DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000997
DEBUG: Importing rule: fix_alt_space; took: 0:00:00.001009
DEBUG: Importing rule: fix_file; took: 0:00:00.002996
DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.008540
DEBUG: Importing rule: git_add; took: 0:00:00.002006
DEBUG: Importing rule: git_add_force; took: 0:00:00
DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000999
DEBUG: Importing rule: git_branch_0flag; took: 0:00:00.001001
DEBUG: Importing rule: git_branch_delete; took: 0:00:00
DEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00
DEBUG: Importing rule: git_branch_exists; took: 0:00:00.001001
DEBUG: Importing rule: git_branch_list; took: 0:00:00
DEBUG: Importing rule: git_checkout; took: 0:00:00.001001
DEBUG: Importing rule: git_clone_git_clone; took: 0:00:00.001001
DEBUG: Importing rule: git_clone_missing; took: 0:00:00
DEBUG: Importing rule: git_commit_add; took: 0:00:00.001611
DEBUG: Importing rule: git_commit_amend; took: 0:00:00.000912
DEBUG: Importing rule: git_commit_reset; took: 0:00:00
DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.001000
DEBUG: Importing rule: git_diff_staged; took: 0:00:00
DEBUG: Importing rule: git_fix_stash; took: 0:00:00.001002
DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00
DEBUG: Importing rule: git_help_aliased; took: 0:00:00.000998
DEBUG: Importing rule: git_hook_bypass; took: 0:00:00
DEBUG: Importing rule: git_lfs_mistype; took: 0:00:00.000998
DEBUG: Importing rule: git_main_master; took: 0:00:00
DEBUG: Importing rule: git_merge; took: 0:00:00.001002
DEBUG: Importing rule: git_merge_unrelated; took: 0:00:00
DEBUG: Importing rule: git_not_command; took: 0:00:00.001000
DEBUG: Importing rule: git_pull; took: 0:00:00
DEBUG: Importing rule: git_pull_clone; took: 0:00:00
DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00
DEBUG: Importing rule: git_push; took: 0:00:00
DEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.001505
DEBUG: Importing rule: git_push_force; took: 0:00:00
DEBUG: Importing rule: git_push_pull; took: 0:00:00.000949
DEBUG: Importing rule: git_push_without_commits; took: 0:00:00
DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00
DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00
DEBUG: Importing rule: git_remote_delete; took: 0:00:00
DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00
DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.001000
DEBUG: Importing rule: git_rm_recursive; took: 0:00:00
DEBUG: Importing rule: git_rm_staged; took: 0:00:00
DEBUG: Importing rule: git_stash; took: 0:00:00
DEBUG: Importing rule: git_stash_pop; took: 0:00:00.000992
DEBUG: Importing rule: git_tag_force; took: 0:00:00
DEBUG: Importing rule: git_two_dashes; took: 0:00:00
DEBUG: Importing rule: go_run; took: 0:00:00.000916
DEBUG: Importing rule: go_unknown_command; took: 0:00:00.008530
DEBUG: Importing rule: gradle_no_task; took: 0:00:00.001008
DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000993
DEBUG: Importing rule: grep_arguments_order; took: 0:00:00
DEBUG: Importing rule: grep_recursive; took: 0:00:00.000998
DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00
DEBUG: Importing rule: gulp_not_task; took: 0:00:00
DEBUG: Importing rule: has_exists_script; took: 0:00:00.001505
DEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00
DEBUG: Importing rule: heroku_not_command; took: 0:00:00.001019
DEBUG: Importing rule: history; took: 0:00:00.000986
DEBUG: Importing rule: hostscli; took: 0:00:00
DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.001000
DEBUG: Importing rule: java; took: 0:00:00
DEBUG: Importing rule: javac; took: 0:00:00.001000
DEBUG: Importing rule: lein_not_task; took: 0:00:00
DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.001000
DEBUG: Importing rule: ln_s_order; took: 0:00:00
DEBUG: Importing rule: long_form_help; took: 0:00:00.001001
DEBUG: Importing rule: ls_all; took: 0:00:00
DEBUG: Importing rule: ls_lah; took: 0:00:00.000999
DEBUG: Importing rule: man; took: 0:00:00
DEBUG: Importing rule: man_no_space; took: 0:00:00
DEBUG: Importing rule: mercurial; took: 0:00:00
DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00
DEBUG: Importing rule: mkdir_p; took: 0:00:00.001622
DEBUG: Importing rule: mvn_no_command; took: 0:00:00.000892
DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00
DEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.007998
DEBUG: Importing rule: no_command; took: 0:00:00
DEBUG: Importing rule: no_such_file; took: 0:00:00
DEBUG: Importing rule: npm_missing_script; took: 0:00:00.007999
DEBUG: Importing rule: npm_run_script; took: 0:00:00
DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.001006
DEBUG: Importing rule: omnienv_no_such_command; took: 0:00:00.032688
DEBUG: Importing rule: open; took: 0:00:00.000974
DEBUG: Importing rule: pacman; took: 0:00:00.033444
DEBUG: Importing rule: pacman_invalid_option; took: 0:00:00.001006
DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000994
DEBUG: Importing rule: path_from_history; took: 0:00:00
DEBUG: Importing rule: php_s; took: 0:00:00
DEBUG: Importing rule: pip_install; took: 0:00:00
DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000999
DEBUG: Importing rule: port_already_in_use; took: 0:00:00.008507
DEBUG: Importing rule: prove_recursively; took: 0:00:00.001001
DEBUG: Importing rule: python_command; took: 0:00:00.001000
DEBUG: Importing rule: python_execute; took: 0:00:00
DEBUG: Importing rule: python_module_error; took: 0:00:00
DEBUG: Importing rule: quotation_marks; took: 0:00:00
DEBUG: Importing rule: rails_migrations_pending; took: 0:00:00.001000
DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.001001
DEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000998
DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00
DEBUG: Importing rule: rm_dir; took: 0:00:00.001504
DEBUG: Importing rule: rm_root; took: 0:00:00.001007
DEBUG: Importing rule: scm_correction; took: 0:00:00
DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00
DEBUG: Importing rule: sl_ls; took: 0:00:00
DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000999
DEBUG: Importing rule: sudo; took: 0:00:00
DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.001006
DEBUG: Importing rule: switch_lang; took: 0:00:00
DEBUG: Importing rule: systemctl; took: 0:00:00.000996
DEBUG: Importing rule: terraform_init; took: 0:00:00
DEBUG: Importing rule: terraform_no_command; took: 0:00:00.000998
DEBUG: Importing rule: test.py; took: 0:00:00
DEBUG: Importing rule: tmux; took: 0:00:00.001000
DEBUG: Importing rule: touch; took: 0:00:00
DEBUG: Importing rule: tsuru_login; took: 0:00:00.001001
DEBUG: Importing rule: tsuru_not_command; took: 0:00:00
DEBUG: Importing rule: unknown_command; took: 0:00:00.000999
DEBUG: Importing rule: unsudo; took: 0:00:00.001000
DEBUG: Importing rule: vagrant_up; took: 0:00:00
DEBUG: Importing rule: whois; took: 0:00:00.001006
DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000996
DEBUG: Importing rule: wrong_hyphen_before_subcommand; took: 0:00:00.000999
DEBUG: Importing rule: yarn_alias; took: 0:00:00
DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.007508
DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.001000
DEBUG: Importing rule: yarn_help; took: 0:00:00.001004
DEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.008506
DEBUG: Trying rule: path_from_history; took: 0:00:00.000999
DEBUG: Trying rule: cd_cs; took: 0:00:00
DEBUG: Trying rule: dry; took: 0:00:00
DEBUG: Trying rule: git_stash_pop; took: 0:00:00
DEBUG: Trying rule: test.py; took: 0:00:00
DEBUG: Trying rule: adb_unknown_command; took: 0:00:00
DEBUG: Trying rule: ag_literal; took: 0:00:00
DEBUG: Trying rule: aws_cli; took: 0:00:00
DEBUG: Trying rule: az_cli; took: 0:00:00
DEBUG: Trying rule: brew_link; took: 0:00:00
DEBUG: Trying rule: brew_reinstall; took: 0:00:00
DEBUG: Trying rule: brew_uninstall; took: 0:00:00
DEBUG: Trying rule: brew_update_formula; took: 0:00:00
DEBUG: Trying rule: cargo; took: 0:00:00
DEBUG: Trying rule: cargo_no_command; took: 0:00:00
DEBUG: Trying rule: cat_dir; took: 0:00:00
DEBUG: Trying rule: cd_correction; took: 0:00:00
DEBUG: Trying rule: cd_mkdir; took: 0:00:00
DEBUG: Trying rule: cd_parent; took: 0:00:00
DEBUG: Trying rule: chmod_x; took: 0:00:00
DEBUG: Trying rule: choco_install; took: 0:00:00
DEBUG: Trying rule: composer_not_command; took: 0:00:00
DEBUG: Trying rule: conda_mistype; took: 0:00:00
DEBUG: Trying rule: cp_create_destination; took: 0:00:00
DEBUG: Trying rule: cp_omitting_directory; took: 0:00:00
DEBUG: Trying rule: cpp11; took: 0:00:00
DEBUG: Trying rule: dirty_untar; took: 0:00:00
DEBUG: Trying rule: dirty_unzip; took: 0:00:00
DEBUG: Trying rule: django_south_ghost; took: 0:00:00
DEBUG: Trying rule: django_south_merge; took: 0:00:00
DEBUG: Trying rule: docker_image_being_used_by_container; took: 0:00:00
DEBUG: Trying rule: docker_login; took: 0:00:00
DEBUG: Trying rule: docker_not_command; took: 0:00:00
DEBUG: Trying rule: fab_command_not_found; took: 0:00:00
DEBUG: Trying rule: fix_alt_space; took: 0:00:00
DEBUG: Trying rule: fix_file; took: 0:00:00
DEBUG: Trying rule: gem_unknown_command; took: 0:00:00
DEBUG: Trying rule: git_add; took: 0:00:00
DEBUG: Trying rule: git_add_force; took: 0:00:00
DEBUG: Trying rule: git_bisect_usage; took: 0:00:00
DEBUG: Trying rule: git_branch_0flag; took: 0:00:00
DEBUG: Trying rule: git_branch_delete; took: 0:00:00
DEBUG: Trying rule: git_branch_delete_checked_out; took: 0:00:00
DEBUG: Trying rule: git_branch_exists; took: 0:00:00
DEBUG: Trying rule: git_branch_list; took: 0:00:00
DEBUG: Trying rule: git_checkout; took: 0:00:00
DEBUG: Trying rule: git_clone_git_clone; took: 0:00:00
DEBUG: Trying rule: git_clone_missing; took: 0:00:00
DEBUG: Trying rule: git_commit_add; took: 0:00:00
DEBUG: Trying rule: git_commit_amend; took: 0:00:00
DEBUG: Trying rule: git_commit_reset; took: 0:00:00.000898
DEBUG: Trying rule: git_diff_no_index; took: 0:00:00
DEBUG: Trying rule: git_diff_staged; took: 0:00:00
DEBUG: Trying rule: git_fix_stash; took: 0:00:00
DEBUG: Trying rule: git_flag_after_filename; took: 0:00:00
DEBUG: Trying rule: git_help_aliased; took: 0:00:00
DEBUG: Trying rule: git_lfs_mistype; took: 0:00:00
DEBUG: Trying rule: git_merge; took: 0:00:00
DEBUG: Trying rule: git_merge_unrelated; took: 0:00:00
DEBUG: Trying rule: git_not_command; took: 0:00:00
DEBUG: Trying rule: git_pull; took: 0:00:00
DEBUG: Trying rule: git_pull_clone; took: 0:00:00
DEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00
DEBUG: Trying rule: git_push; took: 0:00:00
DEBUG: Trying rule: git_push_different_branch_names; took: 0:00:00
DEBUG: Trying rule: git_push_pull; took: 0:00:00
DEBUG: Trying rule: git_push_without_commits; took: 0:00:00
DEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00
DEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00
DEBUG: Trying rule: git_remote_delete; took: 0:00:00
DEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00
DEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00
DEBUG: Trying rule: git_rm_recursive; took: 0:00:00
DEBUG: Trying rule: git_rm_staged; took: 0:00:00
DEBUG: Trying rule: git_stash; took: 0:00:00
DEBUG: Trying rule: git_tag_force; took: 0:00:00
DEBUG: Trying rule: git_two_dashes; took: 0:00:00
DEBUG: Trying rule: go_run; took: 0:00:00
DEBUG: Trying rule: go_unknown_command; took: 0:00:00
DEBUG: Trying rule: gradle_no_task; took: 0:00:00
DEBUG: Trying rule: gradle_wrapper; took: 0:00:00
DEBUG: Trying rule: grep_arguments_order; took: 0:00:00
DEBUG: Trying rule: grep_recursive; took: 0:00:00
DEBUG: Trying rule: grunt_task_not_found; took: 0:00:00
DEBUG: Trying rule: gulp_not_task; took: 0:00:00
DEBUG: Trying rule: has_exists_script; took: 0:00:00
DEBUG: Trying rule: heroku_multiple_apps; took: 0:00:00
DEBUG: Trying rule: heroku_not_command; took: 0:00:00
DEBUG: Trying rule: hostscli; took: 0:00:00
DEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00
DEBUG: Trying rule: java; took: 0:00:00
DEBUG: Trying rule: javac; took: 0:00:00
DEBUG: Trying rule: lein_not_task; took: 0:00:00
DEBUG: Trying rule: ln_no_hard_link; took: 0:00:00
DEBUG: Trying rule: ln_s_order; took: 0:00:00
DEBUG: Trying rule: ls_all; took: 0:00:00
DEBUG: Trying rule: ls_lah; took: 0:00:00
DEBUG: Trying rule: man; took: 0:00:00
DEBUG: Trying rule: mercurial; took: 0:00:00
DEBUG: Trying rule: mkdir_p; took: 0:00:00
DEBUG: Trying rule: mvn_no_command; took: 0:00:00
DEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00
DEBUG: Trying rule: no_such_file; took: 0:00:00
DEBUG: Trying rule: npm_missing_script; took: 0:00:00
DEBUG: Trying rule: npm_run_script; took: 0:00:00
DEBUG: Trying rule: npm_wrong_command; took: 0:00:00
DEBUG: Trying rule: open; took: 0:00:00
DEBUG: Trying rule: pacman_invalid_option; took: 0:00:00
DEBUG: Trying rule: php_s; took: 0:00:00
DEBUG: Trying rule: pip_install; took: 0:00:00
DEBUG: Trying rule: pip_unknown_command; took: 0:00:00
DEBUG: Trying rule: prove_recursively; took: 0:00:00
DEBUG: Trying rule: python_command; took: 0:00:00
DEBUG: Trying rule: python_execute; took: 0:00:00
DEBUG: Trying rule: python_module_error; took: 0:00:00
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
DEBUG: Trying rule: remove_shell_prompt_literal; took: 0:00:00
DEBUG: Trying rule: remove_trailing_cedilla; took: 0:00:00
DEBUG: Trying rule: rm_dir; took: 0:00:00
DEBUG: Trying rule: scm_correction; took: 0:00:00
DEBUG: Trying rule: sed_unterminated_s; took: 0:00:00
DEBUG: Trying rule: sl_ls; took: 0:00:00
DEBUG: Trying rule: ssh_known_hosts; took: 0:00:00
DEBUG: Trying rule: sudo; took: 0:00:00
DEBUG: Trying rule: sudo_command_from_user_path; took: 0:00:00
DEBUG: Trying rule: switch_lang; took: 0:00:00
DEBUG: Trying rule: systemctl; took: 0:00:00
DEBUG: Trying rule: terraform_init; took: 0:00:00
DEBUG: Trying rule: terraform_no_command; took: 0:00:00
DEBUG: Trying rule: tmux; took: 0:00:00
DEBUG: Trying rule: touch; took: 0:00:00
DEBUG: Trying rule: tsuru_login; took: 0:00:00
DEBUG: Trying rule: tsuru_not_command; took: 0:00:00
DEBUG: Trying rule: unknown_command; took: 0:00:00
DEBUG: Trying rule: unsudo; took: 0:00:00
DEBUG: Trying rule: vagrant_up; took: 0:00:00
DEBUG: Trying rule: whois; took: 0:00:00
DEBUG: Trying rule: workon_doesnt_exists; took: 0:00:00
DEBUG: Trying rule: yarn_alias; took: 0:00:00
DEBUG: Trying rule: yarn_command_not_found; took: 0:00:00
DEBUG: Trying rule: yarn_command_replaced; took: 0:00:00
DEBUG: Trying rule: yarn_help; took: 0:00:00
DEBUG: Trying rule: git_hook_bypass; took: 0:00:00.000998
DEBUG: Trying rule: git_main_master; took: 0:00:00
DEBUG: Trying rule: man_no_space; took: 0:00:00
DEBUG: Trying rule: no_command; took: 0:00:00
DEBUG: Trying rule: missing_space_before_subcommand; took: 0:00:00.745266
DEBUG: Trying rule: wrong_hyphen_before_subcommand; took: 0:00:00
DEBUG: Trying rule: long_form_help; took: 0:00:00
DEBUG: Trying rule: history; took: 0:00:00.002001
No fucks given
DEBUG: Total took: 0:00:02.500426

Anything else you think is relevant:

PS C:\Users\xxx> thefuck --version
The Fuck 3.32 using Python 3.12.3 and PowerShell 5.1.22621.4391
PS C:\Users\xxx> thefuck --alias
function fuck {
    $history = (Get-History -Count 1).CommandLine;
    if (-not [string]::IsNullOrWhiteSpace($history)) {
        $fuck = $(thefuck $args $history);
        if (-not [string]::IsNullOrWhiteSpace($fuck)) {
            if ($fuck.StartsWith("echo")) { $fuck = $fuck.Substring(5); }
            else { iex "$fuck"; }
        }
    }
    [Console]::ResetColor()
}

PS C:\Users\xxx> puthon
puthon : 无法将“puthon”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径
正确,然后再试一次。
所在位置 行:1 字符: 1
+ puthon
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (puthon:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\xxx> fuck
No fucks given
@MeverikC
Copy link
Author

I was wrong!
After using git brnch or git stats, executing fuck can fix the command normally, but I still want to know why puthon=>python or ech => echo does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant