question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TheFuck doesn't see my zsh aliases :(

See original GitHub issue

Rules in which get_new_command returns a zsh alias result in command not found errors. Example:

> alias
[...]
baz='echo "it worked!"'
[...]

> cat .thefuck/rules/aliastest.py
def match(command, settings):
    return (command.script == 'foo')

def get_new_command(command, settings):
    return 'baz'

> foo
zsh: command not found: foo

> fuck
baz
zsh: command not found: baz

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
braineocommented, Aug 8, 2017

Hi guys, do you see this regression again? I am using 3.18 and it is not seeing my gp alias

0reactions
MadaraUchihacommented, Dec 2, 2015

Hey guys, bumping this, can it be reopened? The issue is still very much there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

alias doesn't work when using oh-my-zsh `per-directory-history`
I'm trying to get thefuck working; TheFuck 3.2, Python 2.7.6, zsh 5.0.2 via oh-my-zsh. I can run thefuck git brnch (or, thefuck !!...
Read more >
How thefuck alias handle command line arguments - nvbn blog
So in the last step eval git branch --help was called. As everyone know, bash and zsh don't allow command line arguments in...
Read more >
A lean terminal setup for doing more while typing less - Medium
First, let's check if zsh is actually installed by typing which zsh . You should see the path to the zsh binary (usually...
Read more >
Your CLI alias commands : r/linux - Reddit
Doesn't that depend on how the script is ran and how the alias is set ... and I don't know if this counts...
Read more >
An app which corrects your previous console command
It doesn't work but tells you enough the fix should be obvious to a ... too, I've also got a bunch of even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found