Skip to content

Conversation

@yume-chan
Copy link
Contributor

@yume-chan yume-chan commented Oct 31, 2019

Just setup PowerShell on my new MacBook and when I run fuck it says:

image

I tried, but iex "thefuck --alias" will only print out the alias script.

The wiki page is correct.

I'm so confused that the typo is there from the very beginning, and for about 3 years no one had found it.

EDIT: And use & $PROFILE to reload profile is also incorrect because the & (call operator) execute the script in a child scope, so any function definition will not expose to the outer (main running) scope. We should use the . (dot-sourcing) operator instead. See this StackOverflow answer.

Copy link
Collaborator

@scorphus scorphus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing

@nvbn
Copy link
Owner

nvbn commented Nov 2, 2019

Looks good, thanks!

@nvbn nvbn merged commit 9381cfe into nvbn:master Nov 2, 2019
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

Successfully merging this pull request may close these issues.

3 participants