[{"data":1,"prerenderedAt":385},["ShallowReactive",2],{"project-11211344":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":35,"aspects":36,"strip":44,"post_text":46,"what":47,"said":65,"maker_in_thread":145,"shape":156,"grid":161,"attempts":346,"same_week":347,"maker_shows":41,"maker_hidden":377,"reader_version":378,"card":379},"11211344","Sensible Bash","An attempt at saner Bash defaults","title","Show HN: Sensible Bash: An attempt at saner Bash defaults","https:\u002F\u002Fgithub.com\u002Fmrzool\u002Fbash-sensible","github.com","mrzool",1456939237,2016,173,70,176,2264,8,"notable","dev_tools","shell configuration","library",[24,25,26,27,28],"bash","shell defaults","bashrc","readline","inputrc","roasted",-0.409,{"positive":32,"neutral":32,"mixed":33,"critical":34},3,2,16,24,{"idea":37,"design":39,"docs":42},{"positive":33,"critical":38},11,{"positive":40,"critical":41},0,4,{"positive":40,"critical":43},1,[32,43,40,40,40,43,43,43,40,43,40,40,43,40,32,43,40,40,32,43,43,40,40,40,40,40,40,40,40,40,40,40,45,32,45,40,32,43,40,43],5,null,{"problem":48,"audience":46,"pricing":46,"motivation":46,"time_to_build":46,"stack":58,"openness":63,"stage":64,"team_size":64},{"value":49,"source":50,"evidence":51},"Bash defaults are considered unhelpful and need tweaking for interactive use","inferred",[52,54],{"id":53},"post",{"id":55,"by":56,"text":57},"11212798","thom_nic","I feel like discussion of 'sensible bash defaults' is incomplete without mention of .inputrc. My most \"can't live without it\" setting for bash is actually an .inputrc setting:…",[59],{"value":60,"source":50,"evidence":61},"Bash",[62],{"id":53},"open_source","unknown",{"praise":66,"objections":75,"requests":109,"questions":117,"alternatives":122},[67],{"value":68,"source":69,"evidence":70},"Useful small collection of comfort features bash already supports","commenter",[71],{"id":72,"by":73,"text":74},"11211825","onli","I like it. It is not a complete revamp of bash to something else (the zsh-comment below is not fitting), it just enables some comfort features bash readily supports. One can…",[76,91,102],{"value":77,"source":69,"evidence":78},"Directory cd prepending and spelling autocorrect are risky defaults",[79,83,87],{"id":80,"by":81,"text":82},"11212014","wyldfire","> Prepend cd to directory names automatically, so you can cd into directories just by typing their name; I'm pretty sure this is a solution to a problem I don't have today. >…",{"id":84,"by":85,"text":86},"11214186","hornetblack","> > Automatically correct spelling errors during tab-completion; > I'm terrified to put this in my shell. I had it in once (it's one the options in zsh setup) Once I was cleaning…",{"id":88,"by":89,"text":90},"11211828","sapht","This looks pretty sane overall. If you try this, be aware that it changes directory navigation, i.e. \"Prepend cd to directory names automatically, so you can cd into directories…",{"value":92,"source":69,"evidence":93},"Treating hyphens and underscores as equivalent seems unwise",[94,98],{"id":95,"by":96,"text":97},"11211914","rout39574","May be an old-fart prejudice, but my eyes cross to think that 'dash and underline are equivalent' might be a desired thing. Making bash be clever seems like a pile of pitfalls.…",{"id":99,"by":100,"text":101},"11211939","bpchaps","Yeah, I don't get this one, either. This seems far away from sane. What's the rationality behind it?",{"value":103,"source":69,"evidence":104},"Sensible defaults are personal; history search changes break muscle memory",[105],{"id":106,"by":107,"text":108},"11212859","ajross","This is why these things are so personal. I'd hate this. The up\u002Fdown bindings are absolutely tied to specific command orders in my head. I need to know that \"three commands back\"…",[110],{"value":111,"source":69,"evidence":112},"Upstream history settings into bash defaults",[113],{"id":114,"by":115,"text":116},"11213083","modeless","These history settings should clearly be the real defaults. I wonder how difficult it would be to get them changed upstream? Upstreaming would also allow improvements, for…",[118],{"value":119,"source":69,"evidence":120},"Why treat hyphens and underscores as equivalent?",[121],{"id":99,"by":100,"text":101},[123,134],{"value":124,"source":69,"evidence":125},"zsh",[126,130],{"id":127,"by":128,"text":129},"11211762","technimad","In other words: making bash more like zsh",{"id":131,"by":132,"text":133},"11212011","TallGuyShort","I'm a big fan of zsh. It doesn't seem to be solely focused on just \"doing what you mean\", which some of these tweaks seem aimed at; it seems aimed more at correctness. e.g., it…",{"value":135,"source":69,"evidence":136},"fish",[137,141],{"id":138,"by":139,"text":140},"11213069","burgerdev","Most of these are included in \u002Fusr\u002Fbin\u002Ffish :)",{"id":142,"by":143,"text":144},"11213186","LASR","Or just use fish. Why is this even a conversation in 2016?",{"comments":41,"answered":32,"key":146},[147,150,153],{"id":148,"text":149},"11211976","I don't have any file or folder name starting with a dash, while underscores are pretty common. Treating dashes and underscores as equivalents saves you one keystroke (i.e. you…",{"id":151,"text":152},"11212079","The shift press doesn't count as keystroke? :)",{"id":154,"text":155},"11212604","I've used `set -o vi` for a while but found that emacs-like keybindings are much, much better for inline editing. And yes, even one keystroke saved matters.",{"commenters":157,"max_depth":158,"maker_replies":41,"first_comment_mins":159,"lifespan_hours":160},54,7,53,25,[162,164,166,170,173,176,178,182,184,187,188,192,195,196,199,202,203,204,206,208,209,212,214,215,217,221,224,228,229,232,234,237,239,241,243,246,249,252,255,258,261,264,267,270,273,276,278,281,283,285,287,290,293,295,298,299,302,305,309,312,315,319,322,326,330,332,336,339,341,343],[55,40,32,163,56,40],"project\u002Fneutral\u002Fnone",[106,40,43,165,107,40],"project\u002Fcritical\u002Fidea",[167,40,40,168,169,40],"11213060","commenter\u002Fneutral\u002Fnone","omalsa04",[171,40,40,168,172,40],"11218641","zo1",[174,40,40,168,175,40],"11213689","plorg",[177,40,40,168,56,40],"11214853",[179,40,40,180,181,40],"11213679","other\u002Fneutral\u002Fnone","insanebits",[183,40,40,180,56,40],"11214867",[185,40,40,168,186,40],"11214387","ianmcgowan",[80,43,43,165,81,40],[189,43,43,190,191,40],"11212264","project\u002Fcritical\u002Fdesign","jimminy",[193,43,43,190,194,40],"11213288","hamidnazari",[84,43,43,190,85,40],[197,43,40,168,198,40],"11214222","alphapapa",[200,43,40,168,201,40],"11214910","zurn",[95,33,43,165,96,40],[99,33,43,165,100,40],[148,33,40,205,11,43],"maker\u002Fneutral\u002Fidea",[207,33,40,168,81,40],"11212043",[151,33,40,168,11,43],[210,33,40,168,211,40],"11212087","jsprogrammer",[213,33,43,165,100,40],"11212375",[154,33,40,205,11,43],[216,33,40,168,100,40],"11212995",[218,33,32,219,220,40],"11212414","project\u002Fmixed\u002Fidea","chairleader",[222,33,40,223,11,43],"11211949","maker\u002Fneutral\u002Fnone",[225,32,43,226,227,40],"11215820","project\u002Fcritical\u002Fdocs","dlitz",[138,41,43,165,139,40],[230,41,40,180,231,40],"11213150","heydonovan",[233,41,40,180,198,40],"11214246",[235,45,40,180,236,40],"11211873","otobrglez",[88,238,43,190,89,40],6,[72,158,45,240,73,40],"project\u002Fpositive\u002Fnone",[127,18,32,242,128,40],"project\u002Fneutral\u002Fidea",[244,18,43,165,245,40],"11211803","jjawssd",[247,18,43,165,248,40],"11211832","aerique",[250,18,40,180,251,40],"11211853","burke",[253,18,40,168,254,40],"11212686","massysett",[256,18,40,180,257,40],"11212876","xaduha",[259,18,40,168,260,40],"11213522","waxjar",[262,18,40,180,263,40],"11212963","stormbeta",[265,18,40,168,266,40],"11214938","freddie_mercury",[268,18,40,180,269,40],"11211854","SoMuchToGrok",[271,18,40,180,272,40],"11212283","coldtea",[274,18,40,168,275,40],"11212500","MikeKusold",[277,18,40,168,248,40],"11215814",[279,18,40,180,280,40],"11212643","jlgaddis",[282,18,40,180,272,40],"11212874",[284,18,40,180,81,40],"11212027",[286,18,40,180,245,40],"11212395",[288,18,40,180,289,40],"11212550","Symbiote",[291,18,40,168,292,40],"11215624","mryan",[294,18,40,168,289,40],"11216361",[296,18,40,180,297,40],"11211888","scrollaway",[131,18,40,180,132,40],[300,18,40,180,301,40],"11214991","ridiculous_fish",[114,303,45,304,115,40],9,"project\u002Fpositive\u002Fidea",[306,307,32,219,308,40],"11212610",10,"ChrisArgyle",[310,38,40,180,311,40],"11212923","riquito",[313,38,40,180,314,40],"11213262","opejn",[316,317,45,304,318,40],"11211982",12,"ymse",[320,317,40,168,321,40],"11213904","LukeShu",[323,324,40,168,325,40],"11212644",13,"rejap",[327,324,32,328,329,40],"11213379","project\u002Fneutral\u002Fdocs","azeirah",[331,324,40,168,321,40],"11213687",[333,334,43,165,335,40],"11212049",14,"Gratsby",[337,334,40,168,338,40],"11212098","startling",[340,334,40,168,335,40],"11212277",[142,342,43,165,143,40],15,[344,34,43,165,345,40],"11213114","justin_vanw",[],[348,353,358,363,367,372],{"id":349,"name":350,"points":351,"category":352},"11213475","Flexbox Defense",243,"learning_science",{"id":354,"name":355,"points":356,"category":357},"11192398","Bitfly",239,"security_privacy",{"id":359,"name":360,"points":361,"category":362},"11187507","Wifi",153,"consumer_social",{"id":364,"name":365,"points":366,"category":357},"11188686","siga",149,{"id":368,"name":369,"points":370,"category":371},"11174815","CuriosityStream",129,"web_saas",{"id":373,"name":374,"points":375,"category":376},"11191394","54.86.121.4",126,"ai",false,"v2",{"id":380,"name":5,"line":6,"ai":377,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":381,"top":18,"kw":382,"maker":11,"domain":10,"tier":19,"attempts":40,"strip":383,"url":9,"mix":384,"praise":68,"objection":77,"sub":21},11211344,-0.41,[24,25,26,27,28],"3100011101001031003110000000000053503101",[32,32,33,34],1794036541609]