Thefuck: Fix order of arguments to `ln`

Created on 25 May 2016  Â·  5Comments  Â·  Source: nvbn/thefuck

I have a pathological inability to get the arguments to ln in the right order.

For some reason I always think it's ln -s <origin> <destination> whereas in fact it is ln -s <destination> <origin>.

Can fuck fix this?

screen shot 2016-05-25 at 10 27 28

Most helpful comment

Added in 3.10

All 5 comments

whereas in fact it is ln -s

Are you sure?

➜  /tmp echo origin > origin
➜  /tmp ln -s origin dest
➜  /tmp cat dest
origin

@nvbn that's what I mean, but we're using the words _origin_ and _destination_ the opposite way around. For me the _destination_ is the file you're liking _to_, the origin is where you're liking _from_.
Clearly at least some other people think of it your way round, which is why the arguments are in that order I suppose.

Anyway, the point is that I tend to put the arguments the wrong way around. The ideal solution would be for me to learn to do it the right way around, but it hasn't happened yet...
But that's what fuck is for, right? :-D

I also want this function :)

Any of you willing to code it? I'm happy to coach ☺

Added in 3.10

Was this page helpful?
0 / 5 - 0 ratings