Make M-j insert (duplicate) the last word of the Readline line buffer in Bash

bind '"\ej": "!#:$\e^"'
!# is the current line, :$ is the last word, and \e^ is history-expand-line .

By: lri
2019-01-22 07:13:40

What Others Think

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. ??
KayGasaway · 3 weeks and 4 days ago
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
KayGasaway · 3 weeks and 3 days ago
Our credit repair services work to fix past credit mistakes and verify credit report accuracy. Talk to a credit repair expert today! Visit / Website / Click here / sex dolls europe / visit website /
KayGasaway · 3 weeks and 2 days ago
I got too much interesting stuff on your blog. I guess I am not the only one having all the enjoyment here! Keep up the good work. kroger secureweb
KayGasaway · 3 weeks and 2 days ago
Extraordinary things you've generally imparted to us. Simply continue written work this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks sexdoll / sex dolls europe / click here / visit website / website /
KayGasaway · 3 weeks and 1 day ago
I needed to thank you for this incredible read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. gomovies
KayGasaway · 2 weeks and 5 days ago
Today, I was just browsing along and came upon your blog. Just wanted to say good blog and this article helped me a lot, due to which I have found exactly I was looking. Entry level pharmaceutical sales training education
KayGasaway · 2 weeks and 4 days ago
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. Legal Technology
ayesha · 2 weeks and 2 days ago
I truly value this superb post that you have accommodated us. I guarantee this would be helpful for a large portion of the general population. Small Claims Portal
KayGasaway · 2 weeks and 1 day ago
Extraordinary things you've generally imparted to us. Simply continue written work this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks ??????
KayGasaway · 1 week and 3 days ago
Your post is very helpful to get some effective tips to reduce weight properly. You have shared various nice photos of the same. I would like to thank you for sharing these tips. Surely I will try this at home. Keep updating more simple tips like this. Protection
KayGasaway · 1 week ago
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. ?????
KayGasaway · 5 days ago
Regular visits listed here are the easiest method to appreciate your energy, which is why why I am going to the website everyday, searching for new, interesting info. Many, thank you cheap mover in Los angeles
KayGasaway · 4 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. ??
KayGasaway · 2 days ago
I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important..">lowes kronos server
KayGasaway · 20 hours ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: