Just saw a tip here, but I'm not able to make it fully working.
Here is how it plays out:
- type
echo abc def
, then hit enter. - key in
<Up><Alt-T>
, thatecho abc def
will becomesecho def abc
However, I'm not able to make what the above tip fully works. I.e., echo /long/path/to/dir_a /very/long/path/to/dir_b
were never get properly swapped -- instead I get echo /long/path/to/dir_a /very/long/path/to/b_dir
. The comments below the tip get similar results too.
Anyone knows how the tip author made it worked?