{"id":328,"date":"2013-05-12T13:39:14","date_gmt":"2013-05-12T18:39:14","guid":{"rendered":"http:\/\/www.jsylvest.com\/blog\/?p=328"},"modified":"2013-05-22T12:39:11","modified_gmt":"2013-05-22T17:39:11","slug":"command-line-history","status":"publish","type":"post","link":"https:\/\/www.jsylvest.com\/blog\/2013\/05\/command-line-history\/","title":{"rendered":"Command line history"},"content":{"rendered":"<blockquote><p><a href=\"https:\/\/coderwall.com\/p\/oqtj8w\">Jude Robinson :: The single most useful thing in bash<\/a><\/p>\n<p>Create <code>~\/.inputrc<\/code> and fill it with this:<\/p>\n<pre>\"\\e[A\": history-search-backward\r\n\"\\e[B\": history-search-forward\r\nset show-all-if-ambiguous on\r\nset completion-ignore-case on<\/pre>\n<p>This allows you to search through your history using the up and down arrows \u2026 i.e. type <code>cd \/<\/code> and press the up arrow and you'll search through everything in your history that starts with <code>cd \/<\/code>.<\/p><\/blockquote>\n<p>Wow. That is not an exaggeration at all: <em>the<\/em> most useful thing. I am so thrilled to finally be able to search my shell history the same way I can my Matlab history. I've been able to do this there for ages and my mind still hasn't caught up with not being able to do it in the shell.<\/p>\n<p>If it's not clear to you why this is useful or why it pleases me, I don't think there's anything I can do to explain it. Sorry.<\/p>\n<hr>\n<p><i>PS<\/i> Anyone have first-hand experience with <a href=\"http:\/\/fishshell.com\/\">the <code>fish<\/code> shell<\/a>? The autocompletions and inline, automatic syntax highlighting seem clever. I need to get around to giving it a try on one of my boxes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jude Robinson :: The single most useful thing in bash Create ~\/.inputrc and fill it with this: \"\\e[A\": history-search-backward \"\\e[B\": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on This allows you to search through your history using the up and down &hellip; <a href=\"https:\/\/www.jsylvest.com\/blog\/2013\/05\/command-line-history\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[8,15],"class_list":["post-328","post","type-post","status-publish","format-standard","hentry","category-cs","tag-programming","tag-technology","wpautop"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3sddF-5i","jetpack-related-posts":[{"id":1226,"url":"https:\/\/www.jsylvest.com\/blog\/2018\/08\/book-list-2018q2\/","url_meta":{"origin":328,"position":0},"title":"Book List: 2018Q2","author":"jsylvest","date":"7 August 2018","format":false,"excerpt":"Here are the books I read in April, May and June. Since it's already August, I'm going to forego commentary on some of these and just hit publish. The Professor and the Madman: A Tale of Murder, Insanity, and the Making of the Oxford English Dictionary, Simon Winchester This was\u2026","rel":"","context":"In &quot;Book List&quot;","block_context":{"text":"Book List","link":"https:\/\/www.jsylvest.com\/blog\/category\/book-list\/"},"img":{"alt_text":"Cover of \"The Professor and the Madman,\" Simon Winchester","src":"https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2018\/08\/professor-223x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1046,"url":"https:\/\/www.jsylvest.com\/blog\/2017\/07\/what-ive-been-reading\/","url_meta":{"origin":328,"position":1},"title":"What I've Been Reading","author":"jsylvest","date":"25 July 2017","format":false,"excerpt":"Banana: The Fate of the Fruit That Changed the World, Dan Koeppel Not bad. I'm a sucker for this type of history of a single commodity or common household object. It did make we want to try to get my hands on one of the few non-Cavendish cultivars of bananas\u2026","rel":"","context":"In &quot;Book List&quot;","block_context":{"text":"Book List","link":"https:\/\/www.jsylvest.com\/blog\/category\/book-list\/"},"img":{"alt_text":"Banana, Dan Koeppel","src":"https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2017\/06\/71K3llKhVL-200x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1002,"url":"https:\/\/www.jsylvest.com\/blog\/2015\/09\/self-diagnosis-and-government-contracting\/","url_meta":{"origin":328,"position":2},"title":"Self-Diagnosis and Government Contracting","author":"jsylvest","date":"18 September 2015","format":false,"excerpt":"Earlier this week Hadley Wickham, Chief Scientist at RStudio, gave a little talk at Booz Allen. He started out in med school, and one of the things that stuck out from his talk was a comparison between being a consulting statistician and taking a medical history. He tells a similar\u2026","rel":"","context":"In &quot;Business \/ Economics&quot;","block_context":{"text":"Business \/ Economics","link":"https:\/\/www.jsylvest.com\/blog\/category\/business-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1282,"url":"https:\/\/www.jsylvest.com\/blog\/2019\/01\/book-list-2018q4\/","url_meta":{"origin":328,"position":3},"title":"Book List: 2018Q4","author":"jsylvest","date":"24 January 2019","format":false,"excerpt":"The Tree: A Natural History of What Trees Are, How They Live, and Why They Matter, Colin Tudge Exactly what it says on the cover: all about trees. This was exceptionally well organized. As an amateur woodworker, the first few chapters were particularly helpful to sort out all of the\u2026","rel":"","context":"In &quot;Book List&quot;","block_context":{"text":"Book List","link":"https:\/\/www.jsylvest.com\/blog\/category\/book-list\/"},"img":{"alt_text":"Cover of Colin Tudge's, \"The Tree\"","src":"https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2019\/01\/91GF9YeLrhL-198x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1339,"url":"https:\/\/www.jsylvest.com\/blog\/2019\/07\/book-list-2019q2\/","url_meta":{"origin":328,"position":4},"title":"Book List: 2019Q2","author":"jsylvest","date":"12 July 2019","format":false,"excerpt":"I'll call this the Wizards & Cryptarchs, Frauds & Revolutions Edition \u2014or\u2014 \"What I've been reading when I'm not prepping for lectures and wrestling with toddlers.\" Life in Code, Ellen Ullman When Ullman sticks to psychology, writing about what's like to be dealing with code, she is brilliant. No one\u2026","rel":"","context":"In &quot;Book List&quot;","block_context":{"text":"Book List","link":"https:\/\/www.jsylvest.com\/blog\/category\/book-list\/"},"img":{"alt_text":"Cover of Ellen Ullman's \"Life in Code\"","src":"https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2019\/07\/life-in-code.jpg?fit=777%2C1200&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2019\/07\/life-in-code.jpg?fit=777%2C1200&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2019\/07\/life-in-code.jpg?fit=777%2C1200&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2019\/07\/life-in-code.jpg?fit=777%2C1200&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1113,"url":"https:\/\/www.jsylvest.com\/blog\/2018\/01\/some-brief-book-reviews-to-close-2017\/","url_meta":{"origin":328,"position":5},"title":"Some brief book reviews to close 2017","author":"jsylvest","date":"4 January 2018","format":false,"excerpt":"A Wild Swan, Michael Cunningham I would think we've saturated the \"modern re-tellings of fairytales, but for adults\" genre, but this was supremely good. They reminded me of Garrison Keillor in the way that some sadness or loss was mixed in to the stories without them being outright tragic. (I've\u2026","rel":"","context":"In &quot;Book List&quot;","block_context":{"text":"Book List","link":"https:\/\/www.jsylvest.com\/blog\/category\/book-list\/"},"img":{"alt_text":"wild-swan","src":"https:\/\/i0.wp.com\/www.jsylvest.com\/blog\/wp-content\/uploads\/2018\/02\/wild-swan-222x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/posts\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/comments?post=328"}],"version-history":[{"count":11,"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/posts\/328\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/posts\/328\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/categories?post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jsylvest.com\/blog\/wp-json\/wp\/v2\/tags?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}