Thefuck: alias doesn't want to fuck (doesn't recognise the fuck command)

Created on 18 Jan 2017  路  4Comments  路  Source: nvbn/thefuck

After the brew installation, when I add the line
```eval "$(thefuck --alias)"

You can use whatever you want as an alias, like for Mondays:

eval "$(thefuck --alias FUCK)"```

in my .bash_profile

I only receive

-bash: --alias: command not found

I have installed it with brew on a mac (obviously)

Most helpful comment

I did that with no luck, but restarting iterm seems to have fixed it.

eval $(thefuck --alias FUCK) in the ~/.zshrc and it's working great!

All 4 comments

What exactly you've put into .bash_profile? Try just:

eval $(thefuck --alias FUCK)

I'm having the same issue. Brew install eval $(thefuck --alias FUCK) is all I put in my zshrc.

It could be all the gunk I've got in my zsh files causing a problem?

What's the best way to test if it's working? Have you had any luck @radjivC

@BenGitsCode have you run source ~/.zsrhc or relaunched the shell after that?

I did that with no luck, but restarting iterm seems to have fixed it.

eval $(thefuck --alias FUCK) in the ~/.zshrc and it's working great!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

whereistejas picture whereistejas  路  4Comments

lbenedetto picture lbenedetto  路  5Comments

griffinqiu picture griffinqiu  路  4Comments

liuml07 picture liuml07  路  5Comments

caesar picture caesar  路  5Comments