Linux/thefuck: Difference between revisions

From Omnia
Jump to navigation Jump to search
No edit summary
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
dead project, but very usefule.  See [[linux/pay-respects]] instead.
dead project, but very usefule.  See [[linux/pay-respects]] instead.


  Broken with environments like Python 3.12.
  Broken with environments like Python 3.12 (which you would find on Ubuntu 24.04).


  https://github.com/nvbn/thefuck
  https://github.com/nvbn/thefuck
Line 11: Line 11:
== fix for python 3.12 ==
== fix for python 3.12 ==


Having a hard time getting set up on Ubuntu 24.04 · Issue #1449 · nvbn/thefuck · GitHub
  https://github.com/nvbn/thefuck/issues/1449#issuecomment-2137634221
  https://github.com/nvbn/thefuck/issues/1449#issuecomment-2137634221
== clean version ==
<pre>
/usr/local/lib/python3.10/dist-packages/thefuck/ui.py
    try:
        selector = CommandSelector(corrected_commands)
    except NoRuleMatched:
        logs.failed('No fucks given' if get_alias() == 'fuck'
                    else 'Nothing found')
</pre>
<pre>
eval "$(thefuck --alias)"
alias fck=fuck
alias oops=fuck
alias nuts=fuck
alias duck=fuck
alias F=fuck
</pre>


== keywords ==
== keywords ==

Revision as of 00:09, 11 January 2025

thefuck

dead project, but very usefule. See linux/pay-respects instead.

Broken with environments like Python 3.12 (which you would find on Ubuntu 24.04).
https://github.com/nvbn/thefuck
Magnificent app which corrects your previous console command.

fix for python 3.12

Having a hard time getting set up on Ubuntu 24.04 · Issue #1449 · nvbn/thefuck · GitHub
https://github.com/nvbn/thefuck/issues/1449#issuecomment-2137634221

clean version

/usr/local/lib/python3.10/dist-packages/thefuck/ui.py

    try:
        selector = CommandSelector(corrected_commands)
    except NoRuleMatched:
        logs.failed('No fucks given' if get_alias() == 'fuck'
                    else 'Nothing found')
eval "$(thefuck --alias)"
alias fck=fuck
alias oops=fuck
alias nuts=fuck
alias duck=fuck
alias F=fuck

keywords