Define shell variable HISTIGNORE so that comments (lines starting with #) appear in shell history

export HISTIGNORE=' cd "`*: PROMPT_COMMAND=?*?'
I was surprised to find that with RedHat bash, I could not find any comment lines (begining with #) in my bash shell history. Surprised because in Mageia Linux this works. It turns out that RedHat's bash will keep comment lines if in my .bashrc, I define: export HISTIGNORE=' cd "`*: PROMPT_COMMAND=?*?' Why have comment lines in shell history? It's a handy and convenient way to make proto-commands (to be completed later) and for storing brief text data that is searchable in shell history.
Sample Output
$ export HISTIGNORE=' cd "`*: PROMPT_COMMAND=?*?' ; exec bash
$ # store some text here
$ history | tail -3
 1000  export HISTIGNORE=' cd "`*: PROMPT_COMMAND=?*?' ; exec bash
 1001  # store some text here
 1002  history | tail -3

1
By: mpb
2011-10-18 19:58:39

What Others Think

Command linefu is a website that has information about the shell variable list ignore. Here you can check assignmentholic.co.uk and get more help to solve your study problem. You can post your commands in front of their Magaña Linux this works. You can go for the record those command-line gems that you return to again and again. Join it for more.
Randy45 · 65 weeks and 3 days ago
This website was really suitable for students who wish to learn the commands. Through commands the tasks uselegalcbd.com are done so perfectly and no need to write long codes for that like programming languages. I am expecting more such details from here. Keep up the good work.
Alyssalauren · 41 weeks ago
Mostly I used these good commands notepad on windows 10 for get new information easily.
samkarol · 29 weeks and 3 days ago
I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison N95 mask
jackson2321 · 24 weeks and 3 days ago
Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. ????
jackson2321 · 23 weeks and 6 days ago
Coal-Based Activated Carbon, Wood Activated Carbon, Nutshell Activated Carbon, Coconut Shell Activated Carbon, activated carbon manufacturers activated carbon manufacturers
jackson2321 · 23 weeks and 5 days ago
Good place, walked into the future together with bookmarked as their favorite your websites. That i can’t procrastinate to read the paper even more with everyone. onewalmartone
KayGasaway · 22 weeks and 4 days ago
I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison http://payslipview.pro/
KayGasaway · 22 weeks ago
Most of the time I don’t make comments on websites, but I'd like to say that this article really forced me to do so. Really nice post! https://www.payslipview.pro/
KayGasaway · 22 weeks ago
This unique is a fantastic put up I just spotted using show it again. Suggest whatever I wanted to ascertain optimism through forthcoming you are likely to remain for the purpose of showing this terrific put up. new token event
KayGasaway · 21 weeks and 2 days ago
NYC Popcorn Ceiling Removal has a lot of comments in their website. I will definitely apply this!
MarkMatthews · 21 weeks and 2 days ago
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! Antminer-t19 84th
KayGasaway · 21 weeks and 1 day ago
I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information. monsieurpharmacien24.com/
KayGasaway · 20 weeks and 5 days 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. commercial flat roofing
KayGasaway · 20 weeks and 4 days ago
Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. streaming sans compte
KayGasaway · 20 weeks and 1 day ago
Nothing compares to Weber using Genesis sort of grills. That is certainly the type gas grills which have been that will always make sure that they deliver a high performance part of down interval http://instachatbot.io">shopify chatbot
jackson2321 · 20 weeks and 1 day ago
Intriguing post. I Have Been pondering about this issue, so much obliged for posting. Really cool post.It "s truly extremely pleasant and Useful post.Thanks ???????
KayGasaway · 20 weeks and 1 day ago
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up http://mehfeel.net/mehfeel/blogs/post/259660">learn more about this site
jackson2321 · 20 weeks and 1 day ago
I like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed... http://www.ukadslist.com/view/item-8885492-SlotXo-Apply-deposit-withdraw-automatic-entrance-play-slots-stable-xo-Slot24th.html">slotxo
KayGasaway · 19 weeks and 4 days ago
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! http://www.ukadslist.com/view/item-8885504-Slot-Games-Slot-PG-Joker-XO-Free-Credit-Live-Casino-Football-Betting-MBK1688.html">????????????
KayGasaway · 19 weeks and 3 days ago
Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. ?????
KayGasaway · 19 weeks and 3 days 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. ufa ufadna
KayGasaway · 19 weeks and 3 days ago
I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. ufabet
KayGasaway · 19 weeks and 3 days 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 · 19 weeks and 3 days ago
Great survey, I'm sure you're getting a great response. ??????
KayGasaway · 19 weeks and 3 days ago
I read that Post and got it fine and informative. ?????????????
KayGasaway · 19 weeks and 3 days 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. http://www.canetads.com/view/item-3156306-UFA-UFADNA-online-gambling-website-football-betting-casino-UFABET-complete-in-one-website.html">ufa ufadna
jackson2321 · 18 weeks and 6 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. creating a business plan
KayGasaway · 18 weeks and 5 days ago
A lot of people having an incorrect image about the cash advance loans or sometimes refer it as bad credit payday loans. RARBG
jackson2321 · 18 weeks and 4 days ago
I needed to thank you for this phenomenal read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. Amcham Guatemala Juan Pablo Carrasco Degroote
jackson2321 · 17 weeks and 2 days ago
Nothing compares to Weber using Genesis sort of grills. That is certainly the type gas grills which have been that will always make sure that they deliver a high performance part of down interval summertime saga mod apk
jackson2321 · 15 weeks and 6 days ago
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up Result SGP
jackson2321 · 14 weeks and 4 days ago
Great article with excellent idea!Thank you for such a valuable article. I really appreciate for this great information.. Keluaran HK
jackson2321 · 14 weeks and 1 day ago
This blog was extremely helpful. I really appreciate your kindness in sharing this with me and everyone else! ??????
jackson2321 · 12 weeks and 6 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. ?????????????????????
jackson2321 · 12 weeks and 6 days ago
Your work here on this blog has been top notch from day 1. You've been continously providing amazing articles for us all to read and I just hope that you keep it going on in the future as well. Cheers! ???
jackson2321 · 12 weeks and 6 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. http://articlewritting565.wikidot.com/blog:509">?????????????????????
jackson2321 · 12 weeks and 6 days ago
Personally, I have found that to remain probably the most fascinating topics when it draws a parallel to. You may find two to three new levels inside L . a . Weight loss and any one someone is incredibly important. Initial stage may be real melting away rrn the body. lose weight more info here
jackson2321 · 12 weeks and 5 days ago
The first phase the preparation should, theoretically, be uninfluenced by the intended intensity and duration of the sound which is subsequently produced. In fact, however, so quickly are the three phases accomplished that the pianist rarely has capacity to think, in performance, of each phase separately. ??????
jackson2321 · 12 weeks and 4 days ago
ufabet666, one football betting website, complete all bets, easy to play, get real money, the UFABET365 website is the hottest in this hour Because our system doesn't have to download the app, it doesn't have to be difficult to copy the code into the app. Apply for football betting website Best online, stable web, open for more than many years, more than 1000 members (7x24hr) ??????????????? 777
KayGasaway · 12 weeks and 2 days ago
Interesting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks instagram panel
jackson2321 · 12 weeks and 2 days ago
You have made some decent points there. I looked on the internet for more information about the issue and found most people will go along with your views on this web site. ???? ????
jackson2321 · 12 weeks and 1 day ago
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. Soul Land Season 2
jackson2321 · 11 weeks and 6 days ago
Most of the time I don’t make comments on websites, but I'd like to say that this article really forced me to do so. Really nice post! buy shipping container toowoomba
jackson2321 · 11 weeks and 3 days ago
A lot of people having an incorrect image about the cash advance loans or sometimes refer it as bad credit payday loans. Learning Quran Online
jackson2321 · 10 weeks and 4 days ago
Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. Mangaowl
jackson2321 · 10 weeks and 3 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. 918kiss
jackson2321 · 9 weeks and 3 days ago
The blog and data is excellent and informative as well High-Velocity Profits Review
seomind · 9 weeks ago
I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog! High-Velocity Profits Review
seomind · 9 weeks ago
I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful. High-Velocity Profits Review
seomind · 9 weeks ago
Glad to chat your blog, I seem to be forward to more reliable articles and I think we all wish to thank so many good articles, blog to share with us. High-Velocity Profits Review
seomind · 9 weeks ago
With so many books and articles coming up to give gateway to make-money-online field and confusing reader even more on the actual way of earning money, High-Velocity Profits Review
seomind · 9 weeks ago
I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read !! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site. High-Velocity Profits Review
seomind · 9 weeks ago
I have been searching to find a comfort or effective procedure to complete this process and I think this is the most suitable way to do it effectively. High-Velocity Profits Review
seomind · 9 weeks ago
Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site. High-Velocity Profits Review
seomind · 9 weeks ago
This is very useful post for me. This will absolutely going to help me in my project. High-Velocity Profits Review
seomind · 9 weeks ago
Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return. High-Velocity Profits Review
seomind · 9 weeks ago
I love significantly your own post! I look at all post is great. I discovered your personal content using bing search. Discover my webpage is a great one as you.I work to create several content this post. Once more you can thank you and keep it create! Enjoy! gameone???
jackson2321 · 7 weeks and 6 days ago
I love significantly your own post! I look at all post is great. I discovered your personal content using bing search. Discover my webpage is a great one as you.I work to create several content this post. Once more you can thank you and keep it create! Enjoy! ????????????? pg
jackson2321 · 7 weeks and 6 days 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. ??????????
jackson2321 · 7 weeks and 6 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.. ?????
jackson2321 · 7 weeks and 3 days ago
In the world of www, there are countless blogs. But believe me, this blog has all the perfection that makes it unique in all. I will be back again and again. ???
basitkhatri66 · 5 weeks and 4 days ago
I am jovial you take pride in what you write. It makes you stand way out from many other writers that can not push high-quality content like you. HotStar Premium Apk
basitkhatri66 · 5 weeks and 3 days ago
It is a fantastic post – immense clear and easy to understand. I am also holding out for the sharks too that made me laugh. 69live
basitkhatri66 · 4 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 game one???
jackson2321 · 3 weeks and 3 days ago
Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. betflix
basitkhatri66 · 2 weeks and 6 days ago
There are particular dissertation online sites over the internet if you ever buy of course proclaimed in the site. Blackpods pro
basitkhatri66 · 2 weeks and 4 days ago
Your always provide us quality content and never disappoint us. Thank you for your efforts. You can also Download BSL Shaders for amazing gaming experience.
Nickole · 1 week and 2 days 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: