[{"data":1,"prerenderedAt":330},["ShallowReactive",2],{"project-26259007":3},{"id":4,"name":5,"line":5,"line_source":6,"title":7,"url":8,"domain":9,"maker":10,"posted_at":11,"year":12,"points":13,"comments":14,"rank_in_year":15,"shown_in_year":16,"top":17,"tier":18,"category":19,"subcategory":20,"format":21,"keywords":22,"reception":27,"sentiment":28,"stance_mix":29,"scored_comments":34,"aspects":35,"strip":39,"post_text":42,"what":43,"said":58,"maker_in_thread":129,"shape":132,"grid":136,"attempts":292,"same_week":293,"maker_shows":33,"maker_hidden":322,"reader_version":323,"card":324},"26259007","Alert yourself after a long-running task in terminal","title","Show HN: Alert yourself after a long-running task in terminal","https:\u002F\u002Fgist.github.com\u002Fpetethepig\u002F2d29e8b7e2ebc808bfe760b632608966","gist.github.com","petethepig",1614220230,2021,86,50,602,2533,24,"notable","dev_tools","terminal notifications","cli",[23,24,25,26],"terminal notification","long running task","shell alert","command completion","curious",-0.028,{"positive":30,"neutral":31,"mixed":32,"critical":33},3,32,0,4,39,{"idea":36,"execution":38},{"positive":37,"critical":33},2,{"positive":32,"critical":32},[30,32,32,40,30,40,40,30,30,30,30,32,30,30,30,30,30,30,32,40,30,30,30,30,30,32,32,30,30,41,30,41,30,41,30,30,30,30,30,30],1,5,null,{"problem":42,"audience":44,"pricing":42,"motivation":42,"time_to_build":42,"stack":56,"openness":57,"stage":57,"team_size":57},{"value":45,"source":46,"evidence":47},"Developers running long tasks in terminals","inferred",[48,52],{"id":49,"by":50,"text":51},"26259870","cocoa19","I use ohmyzsh with the bgnotify plugin that does the same. I combine it with the timer plugin to print how long the command takes to complete. I'd argue that most developers…",{"id":53,"by":54,"text":55},"26261273","mosselman","I use `noti` for this: `some_task && noti` `noti some_task` both work. https:\u002F\u002Fgithub.com\u002Fvariadico\u002Fnoti",[],"unknown",{"praise":59,"objections":71,"requests":95,"questions":100,"alternatives":108},[60],{"value":61,"source":62,"evidence":63},"Useful idea for long-running commands","commenter",[64,68],{"id":65,"by":66,"text":67},"26260498","tracyhenry","This is great. Wanted to something about this for a long time. There are more features I desire: notify me when some string pattern occurs in the log. Also I tend to walk away…",{"id":69,"by":10,"text":70},"26260944","This is a cool idea, I've always wanted to expand this kind of thing to other similar usecases like getting notified after long CI jobs. I think the repo is private though.",[72,83],{"value":73,"source":62,"evidence":74},"Notifies too often when viewing terminal or interactive programs like vim",[75,79],{"id":76,"by":77,"text":78},"26262695","kevincox","There is a native feature for this however gnome-terminal won't ship it largely due to disagreement how to integrate it with shells. However Fedora includes patches for it and I…",{"id":80,"by":81,"text":82},"26260736","aarchi","Here is it for fish, using the postexec event handler: ``` function postexec_notify --arg cmd --on-event fish_postexec set -l s $pipestatus if test \"$CMD_DURATION\" -ge 25000 && !…",{"value":84,"source":62,"evidence":85},"Existing tools like iTerm and gnome-terminal already do this",[86,90,91],{"id":87,"by":88,"text":89},"26260275","CGamesPlay","I hear that `terminal-notifier` is pretty much dead and a better replacement with new MacOS APIs is [0]. In any case, I opted against it because iTerm actually supports this…",{"id":76,"by":77,"text":78},{"id":92,"by":93,"text":94},"26259608","pokoleo","iTerm supports this! Take a look here: https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F30016716\u002Fhow-do-i-make-iterm-terminal-notify-me-when-a-job-process-is-complete",[96],{"value":97,"source":62,"evidence":98},"Notify on log string patterns and phone calls",[99],{"id":65,"by":66,"text":67},[101],{"value":102,"source":62,"evidence":103},"Can it detect whether a program accepts user input?",[104],{"id":105,"by":106,"text":107},"26262145","unhammer","Ah, I have something like this just for `make`[0], which I've found very useful. Running it on DEBUG so it covers all commands is an interesting idea. I'm not sure I'd want…",[109,113,117,122],{"value":110,"source":62,"evidence":111},"oh-my-zsh bgnotify plugin",[112],{"id":49,"by":50,"text":51},{"value":114,"source":62,"evidence":115},"noti",[116],{"id":53,"by":54,"text":55},{"value":118,"source":62,"evidence":119},"iTerm native notifications",[120,121],{"id":87,"by":88,"text":89},{"id":92,"by":93,"text":94},{"value":123,"source":62,"evidence":124},"notify-send",[125],{"id":126,"by":127,"text":128},"26259905","naebother","On Gnome (via libnotify): ``` sleep 2 && notify-send \"Done\" ```",{"comments":40,"answered":40,"key":130},[131],{"id":69,"text":70},{"commenters":133,"max_depth":30,"maker_replies":40,"first_comment_mins":134,"lifespan_hours":135},44,74,33,[137,141,143,146,149,153,155,156,157,159,161,162,163,166,168,171,175,179,183,186,189,191,193,196,199,201,204,208,212,216,220,223,228,232,236,240,243,247,250,255,257,261,263,266,269,273,276,280,284,288],[138,32,30,139,140,32],"26260871","project\u002Fneutral\u002Fidea","TrianguloY",[69,32,32,142,10,40],"maker\u002Fpositive\u002Fidea",[144,32,32,145,140,32],"26260994","commenter\u002Fneutral\u002Fnone",[147,32,32,145,148,32],"26262468","yyx",[150,32,40,151,152,32],"26262594","project\u002Fcritical\u002Fidea","swiley",[154,32,30,139,140,32],"26263346",[87,40,40,151,88,32],[76,37,40,151,77,32],[80,30,30,158,81,32],"project\u002Fneutral\u002Fexecution",[160,30,32,145,81,32],"26267868",[49,33,30,139,50,32],[53,41,30,139,54,32],[164,41,30,158,165,32],"26261532","Dowwie",[167,41,32,145,54,32],"26262382",[169,41,32,145,170,32],"26264153","PenguinCoder",[172,173,30,139,174,32],"26273106",6,"da-x",[176,177,30,139,178,32],"26260152",7,"tannercollin",[180,181,30,139,182,32],"26262140",8,"mauvehaus",[184,181,32,145,185,32],"26262185","opan",[187,181,30,139,188,32],"26262430","emmelaich",[190,181,30,139,152,32],"26262601",[126,192,30,158,127,32],9,[194,192,32,145,195,32],"26262705","jraph",[197,192,32,145,198,32],"26265737","cardiffspaceman",[92,200,40,151,93,32],10,[202,200,30,158,203,32],"26260260","brigandish",[205,206,30,158,207,32],"26260484",11,"retSava",[209,210,30,139,211,32],"26261144",12,"abhgh",[213,214,30,139,215,32],"26271764",13,"st0le",[217,218,30,158,219,32],"26259459",14,"auraham",[221,218,30,158,222,32],"26259498","red_hare",[224,225,32,226,227,32],"26266334",15,"other\u002Fneutral\u002Fnone","lcall",[229,230,32,145,231,32],"26260039",16,"l0b0",[233,234,30,158,235,32],"26260261",17,"LordDragonfang",[237,238,30,139,239,32],"26259641",18,"onedognight",[241,238,30,158,242,32],"26259881","carbocation",[244,238,41,245,246,32],"26259894","project\u002Fpositive\u002Fnone","inevaexisted",[248,238,30,158,249,32],"26260764","ohadron",[251,252,41,253,254,32],"26273772",19,"project\u002Fpositive\u002Fidea","thecodemonkey",[105,256,30,139,106,32],20,[258,259,30,139,260,32],"26262615",21,"meego",[65,262,41,253,66,32],22,[264,265,30,139,195,32],"26262736",23,[267,17,30,139,268,32],"26261459","steerablesafe",[270,271,30,158,272,32],"26259509",25,"KMnO4",[274,271,30,158,275,32],"26260048","durkie",[277,278,30,139,279,32],"26262886",26,"druidsbane",[281,282,30,139,283,32],"26261549",27,"alfiedotwtf",[285,286,30,158,287,32],"26259603",28,"jcims",[289,290,30,158,291,32],"26260714",29,"villgax",[],[294,299,304,308,313,317],{"id":295,"name":296,"points":297,"category":298},"26271117","Redbean",1998,"infrastructure",{"id":300,"name":301,"points":302,"category":303},"26258773","GamestonkTerminal",1422,"finance_crypto",{"id":305,"name":306,"points":307,"category":19},"26260390","UTM",418,{"id":309,"name":310,"points":311,"category":312},"26277602","Hummingbard",412,"consumer_social",{"id":314,"name":315,"points":316,"category":19},"26295100","win3wm",327,{"id":318,"name":319,"points":320,"category":321},"26306478","Ten seconds to ponder if a thread is worth it",148,"productivity",false,"v2",{"id":325,"name":5,"line":5,"ai":322,"cat":19,"year":12,"points":13,"comments":14,"rec":27,"s":326,"top":17,"kw":327,"maker":10,"domain":9,"tier":18,"attempts":32,"strip":328,"url":8,"mix":329,"praise":61,"objection":73,"sub":20},26259007,-0.03,[23,24,25,26],"3001311333303333330133333003353535333333",[30,31,32,33],1794036603668]