damn luke pumping out videos day and night like a real "youtuber"
@LukeSmithxyz6 жыл бұрын
I've been getting in the habit of only preparing for a really brief period nowadays, which means I can get home, have an idea and do it within an hour or so. I think this might actually be my 100th video this year?
@shobhit21976 жыл бұрын
@TheFengLord Luke is addicted to upcummies
@shobhit21976 жыл бұрын
@@LukeSmithxyz Thats really great man. love your linux videos. your podcast is really gay though
@AhmedKhaled-sj1zx6 жыл бұрын
@@LukeSmithxyz may you take about HABITS, and these stuff ?
@shobhit21976 жыл бұрын
@@ashwinadhikari1720 cmon dawg. Your name is ashwin adhikari . Dravidian name
@nikoladd6 жыл бұрын
Thank you. I always love to hear of new tools in linux. They are actually hard to deliberately find in my experience. So it basically starts a background process that reads stdin(through pipe or other means). That's actually very useful in many single cases(single files) and totally bad practice for anything on scale.
@MrRenanwill3 жыл бұрын
I thought in status bar imediatly. The most eficient way of updating a status bar is to use memory. Every change in the status bar can be updated by echoing something in a file and then update the status bar with It, instead of using while commands.
@СергійСергійчук-у6с4 жыл бұрын
The most important thing I've learned from this video is not entr but notify-send. I'd like to see a video about hybrid terminal/graphic programs like notify-send and dmenu.
@janis.berzins6 жыл бұрын
Your multi window management is out of this world! Great to see proper use of desktop environment Luke!
@janis.berzins6 жыл бұрын
@@floriantraunat He did, kzbin.info/www/bejne/fXzZmpmigZ6Lm6s
@elsholz23655 жыл бұрын
This is actually exactly what I was looking for for a long time, thanks!
Most of the functionality of entr can be achieved with inotifywait, I think, which is already included on about every system.
@NatesRandomVideo4 жыл бұрын
Finding this a year late, but inotify and entr have significant limitations with network file systems too. A trap for young players...
@b0nes954 жыл бұрын
ikr wtf is entr :')
@mathematicalninja27563 жыл бұрын
@alex mihai in kubuntu it’s knotify
@OzzkarAlhe6 жыл бұрын
Really nice tool. Thank you Luke. The channel looks way better with the new resolution.
@porky11184 жыл бұрын
Yay, that's really something I always wanted. First I thought "When would I need this?" And then I remembered, always running commands like this after editing markdown: pandoc Test.md -o Test.pdf I feel like using an environment for editing Markdown, but I don't. Just gedit and evince opened in a tiling window manager. And a terminal opened, which is hidden somewhere.
@occamsrazor12855 жыл бұрын
Oh bloody hell! This is the answer to the question I couldn't answer in my Facebook interview! It's what cost me the job! In my defense, it was for a Windows Engineering role, but the interviewer was a Linux Engineer....I kinda feel like that was an impossible situation.
@schizophrenicgaming3656 жыл бұрын
"A new post appeared on HentaiHaven!"
@edgarm73534 жыл бұрын
Put the script
@karlvandesman5 жыл бұрын
2:29 "physically open the file" hahaha
@rexevan67146 жыл бұрын
Luke has been on 🔥 lately Luke, how did you make you cursor change in vim? Like in 6:31 In config.h in st folder, I can only assign one type of symbol for the cursor.
@ertwro6 жыл бұрын
In your vimrc: let &t_SI = "\033[5 q" let &t_SR = "\033[1 q" let &t_EI = "\033[1 q" This is for extra fuckery: autocmd InsertEnter * set cul autocmd InsertLeave * set nocul
@gavinvales89286 жыл бұрын
Just used this in conjunction with vim's cursorhold thing to get a live preview with groff, it's freaking amazing
@alissondamasceno20106 жыл бұрын
I've actually doing the same with (terribly written) bash scripts for years now, but it's so much easier with this tool, thank you!
@defnlife16832 жыл бұрын
Oh this is really nice. I wasn’t getting updates on changes to groff file pdf live comp and this seems to fit the ticket to force it to update.
@oddbob62306 жыл бұрын
entr is an anagram for rent.
@thelurkingpanda36056 жыл бұрын
thanks odd bob
@benaloney6 жыл бұрын
Wow Bob
@VictorNascimentoo6 жыл бұрын
And yours, sir, is due.
@alien_man16696 жыл бұрын
Tacocat is tacocat backwards. So is racecar.
@stumbling6 жыл бұрын
And also 'tern' THE MORE YOU KNOW...
@minsoehan79503 жыл бұрын
Wow! Really this is what I have been looking for, as you said. Great thanks.
@lawrencedoliveiro91043 жыл бұрын
The key problem with this kind of tool is there is no Unix/POSIX standard for notification of filesystem events. Linux has its own inotify and fanotify systems, other OSes have different ones or none at all, forcing you to resort to periodic polling to notice changes.
@samyuj5 жыл бұрын
Great vid! im trying to figure our why you're wearing shades on your head
@Ninjaznexx4 жыл бұрын
It shields his third and fourth eye from CIA surveillance
@MadaxeMunkeee6 жыл бұрын
Heck, this is useful. Thanks for sharing!
@auslegungssache6 жыл бұрын
Something like this should be a part of the system: a daemon that checks modified files. I also recommend doing something like this but with commands. For example "when my clipboard contents change, run this command". It's an essential part of my workflow
@gerarddelapatefeuilletee40634 жыл бұрын
Excellent! Thank you for sharing such an indispensable tool!
@julian0rebel6 жыл бұрын
I can see one interesting application for this that people might be interested in. Right now I do my note taking at work with Atom, because it has a live Github style markdown preview in-editor. Now I could open the .md file in firefox while editing in vi for example, and have it reload through entr every time I save my md file, and that way I'd be able to get rid of the 100+ mb text editor bloatware.
@007arek6 жыл бұрын
You can install kannokanno/previm plugin.
@chigozie1235 жыл бұрын
This is game changer for automating configuration dot files. If you are someone using the git method for managing configuration files, you can use this to automatically git commit the changes
@Zmej420BlazeIt5 жыл бұрын
ehhh i just use inotify tools, and for build systems there are language specific tools like guard for ruby, jenkens, etc..
@torphedo6286 Жыл бұрын
I tried for about 2 hours to re-create this setup with the auto-compiling latex. After a ton of iterations with setsid, ":call system()", silent mode, all in vim or in separate scripts, the best I can get is that the command runs in the background, then vim becomes INCREDIBLY slow and only registers half my keystrokes until I exit and restart it. A bunch of garbage ends up in the command window in those scenarios sometimes, so I think maybe it's being spammed with console output even though I redirected it to "/dev/null" in the script and in the vim call? I have no idea how Luke has gotten his to work.
@fluxx236 жыл бұрын
Thanks for sharing! Didn't know of this one!
@garkeinen70344 жыл бұрын
whoa stop right there so I may be very new to bash but what I've learned is that echo outputs something once. And it closes afterwards. The pipe makes it the input of entr. How tf does entr detect when the file changes? Or is my bash world based upon false beliefs?
@KeithSalisbury4 жыл бұрын
Love this tool - it's perfect for TDD
@brandonnee5 жыл бұрын
Where can I find a list of files that entr is currently watching for? I would like to cancel one of my entr scripts, but can't find any sort of config file.
@lawrencedoliveiro91043 жыл бұрын
Instead of echo «something» | «cmd» how about «cmd»
@SoundsFromSound6 жыл бұрын
What color scheme(s) are you using Luke? Your scripts look wicked good on the eyes man! Thanks for another solid video!
@LukeSmithxyz6 жыл бұрын
gruvbox
@SoundsFromSound6 жыл бұрын
@@LukeSmithxyz Sweet thanks!
@b4ssripper6 жыл бұрын
gb is gay tho, use nord with red and green inverted, get confused by portage prompts
@しげお-i1l6 жыл бұрын
Thank You Senpai
@cafecorali6 жыл бұрын
This is sweet. The possibilities are endless.
@jollyonair5 жыл бұрын
LUKE: I listen to Coast to Coast COMMENTS: *crickets* Definitely an iconic show...oops, my boomer is showing.
@brian952403 жыл бұрын
Great show! I miss the days of Art Bell hosting. The Phil Hendrie show was hilarious too.
@desktorp6 жыл бұрын
kinda shocking when you suddenly got rid of your face for a second there
@tomschneider94606 жыл бұрын
Luke: check out atchange: alum.mit.edu/www/toms/atchange.html It can be run from the command line like entr, but also can take a file listing many files to watch. Invented around 1997 ...
@jasperzanjani6 жыл бұрын
I must have that terminal emulator
@harogaston6 жыл бұрын
"physically opened the file" hahaha
@iLiokardo5 жыл бұрын
Your "se" command seems to be extremely useful.
@LucyPero3 жыл бұрын
I can't seem to write to the stdin of the command i run with entr.. That's the only reason why i tried it out, and it doesn't wor..
@acerlmt4 жыл бұрын
Awesome! Thank you!👍🏻
@vivekascoder4 жыл бұрын
It's like i finally find the treasure.
@shafirayhan Жыл бұрын
I have a shell script to reload my c-lang file on save, it is pretty janky and works half the time at best, will definitely give this a shot tonight
@stevenmulvay32923 жыл бұрын
Hi, what window manager are you running?
@nu8k7006 жыл бұрын
hi Luke, how do you filter you files in 5:43 in command-line?
@LukeSmithxyz6 жыл бұрын
That's fzf. I might do a video on it later this week.
@deserve_it6 жыл бұрын
This can be very usefull for identify some events which can possibly happen during the test. Something crashes or some error happens . Intresting , can i set it to recognize if some specific string has appeared in log and to do some actions as result of this event? How is it works ? Is it gorging cpu? How does it know that file had been changed? I am looking for some real reason to justify the tool usage. I don't think i need it simply for notificate me if file has changed or to update my file immediately in vim , becase mostly what you will want is just the opposite . It's one of vim advantages it uses buffers and doesn't update it immediately.
@Fractal2275 жыл бұрын
Maybe it's just me, but how do you tell entr to stop looking for changes to for example a file again. Does entr 'forget' everything on restart of the process?
@matteavana23844 жыл бұрын
I don't understand his purpose. Can't you just use an "&&" logical operand? For example "sudo pacman -Syu --noconfirm&¬ify-send "Packaged upgraded!""
@trendshorttss3 жыл бұрын
thank you that was useful , what is your linux os name?
@justray5103 жыл бұрын
still very new to MacVim, how do some people increase the font size on the fly? I have seen more than one demo on vim and some do this, I can hear the keypresses.
@riccardosven3 жыл бұрын
That is terminal-mode vim (not gui vim). You just need to increase the font size of the terminal. The keys depend on the terminal emulator (on PC it's more often than not CTRL+; CMD+ for mac maybe?)
@agatehao3 жыл бұрын
Isn't it just the catcher of `inotify` event?
@JoshuaShope6 жыл бұрын
Could you use this to monitor log files and make automatic backups before clearing them after a certain number of updates? Either way seems like a great tool
@nicolasvillafan5 жыл бұрын
How would you tell entr to watch this command "( task next limit:5 )" out for change but have it always print into terminal?
@eXerigumoClanjor6 жыл бұрын
No. I would not install yet another third-party tool for such fundamental task. Just use `systemd-run \-\-user \-\-path-property=PathModified=$HOME/.bashrc \-\- notify-send "bashrc updated"` for example.
@animanaut2 жыл бұрын
Thx, had my own inotify/-wait wrapper script, but this is way better
@kurokurovich4 жыл бұрын
this is what i was looking for
@arunsahadeo49676 жыл бұрын
Looks interesting, but not really sure how useful ENTR is for automated deployment, when we can use Git hooks to do this.
@Vagelis_Prokopiou6 жыл бұрын
Very nice. Never heard of this before.
@stumbling6 жыл бұрын
How do I get my windows to look like all the cool kids?
@jazzochannel Жыл бұрын
whats the point of task spooler? is it a replacement for `at now`?
@japhethjay48806 жыл бұрын
I really need to get to learn tilling but am scared shitless. Any pointers will be of great help
@arcooke6 жыл бұрын
That's pretty cool. How does it watch changes for "ls" without repeatedly running "ls" in the background? I use ls just as an example, but it applies to anything really. Since you can seemingly feed it any arbitrary command, how does it know how to handle whatever you pipe into it? Using ls as an example.. when you initially pipe ls into entr, I assume it takes the output from ls, and puts it into some kind of background job to rerun the same command and monitor for changes. In order to discover changes to your initial command, it would need to rerun your command and refresh the output.. again, since the input is arbitrary and not hard-coded into entr with explicit callbacks. Is entr just running your commands in a background loop over and over or is it using some kind of linux voodoo I'm not aware of? If it is rerunning your command, it would seem it could get pretty resource hungry if you're not careful what you're piping into it (e.g. ls -R in a massive directory)
@LukeSmithxyz6 жыл бұрын
Not sure if you really get the whole concept of standard input. Once you pipe the text output to a program, it first program is done. You could uninstall ls from your computer and it wouldn't matter. entr reads text input, which is what ls *html produces on the initial run.
@arcooke6 жыл бұрын
@@LukeSmithxyz Very likely that I don't fully understand how standard input works (source: I don't) :) Thanks for the info. Just trying to wrap my head around how this works
@davidheremans69786 жыл бұрын
Like the other comments stated: learn about standard output, standard input and standard error. (github.com/hcs/bootcamp-unix/wiki/stdin,-stdout,-stderr,-and-pipes) And about the loop question: No it doesn't it uses the inotify mechanism of linux to be warned when one of the inodes is changed. Tip: learn about the unix filesystem to learn about inodes (www.grymoire.com/Unix/Inodes.html)
@arcooke6 жыл бұрын
@@davidheremans6978 Thanks a lot. I actually really appreciate that .. I'll give them a read
@gunrugger6 жыл бұрын
How are you opening terminals in panels and resizing them like that? What DE are you using? GUSH: Thank you for your videos! you showed me ranger and it is awesome. I want to be as proficient as you so I will continue to watch your videos. I am currently watching your arch linux install video and doing all of the things. Thank you for your work and video creation. I'm a real fan.
@OfftopicStuff6 жыл бұрын
might be "terminator", you're able to open new tabs and split the screen estate assigned to the whole application so each tab has its own space - IT recommended it to me when we were figuring out an issue with my workstation in the university i attend
@rinnarii6 жыл бұрын
He's using i3wm
@ncruzalayza6 жыл бұрын
i3wm with custom script for resizing.
@llothar686 жыл бұрын
Can anyone without strong indian accent please make a video about Jenkins.
@marcpanther79246 жыл бұрын
(1) Which distro is that (2) 0:57 What's the tool that allows you to snap windows and drag-to-resize?
@marcpanther79246 жыл бұрын
Oh never mind. Saw your other video about i3.
@strapjuh6 жыл бұрын
Thanks Luke :)
@janissteninbergs78176 жыл бұрын
What Tiling WM are you using?
@Zeadar6 жыл бұрын
Editing .Xresources will be less of a chore now.
@stuartg406 жыл бұрын
What distro / X is being used in this video please? I admire the window organisation.
@xGOKOPx5 жыл бұрын
i3 window manager
@prajwaljpj6 жыл бұрын
It'd be great if you can do a video about fzf
@louddesignstudios5 жыл бұрын
Damn it never heard of that thanks man
@Cyber_Lanka6 жыл бұрын
You literally saved my life Luke!. Many thanks.
@LoLei32396 жыл бұрын
I've been using "when-changed" for this utility until now, is entr better in any way? when-changed is a python script and entr is in C, so entr might be more Linuxy in a sense, but I don't know...
@hammadnadeemx6 жыл бұрын
i am a computer scientist but still i am not as good with bash as luke is ! need to step up my game !
@thescrawl65946 жыл бұрын
You say you dont like auto compilers, I was just wondering about some LaTeX/groff related issues. Do you write all your documents directly in latex/groff from the first draft or do you write it somewhere else first then when its ready write it all into markdown format to be compiled? I'm speaking as a normie who doesnt use these, it seems like a hassle to think about syntax and whatnot while youre trying to think/focus on your writing, and it could draw you out of the right mindstate, especially without an autocompiler. Am I just too much of a brainlet?
@LukeSmithxyz6 жыл бұрын
I think that writing in markdown is a huge waste of time if you're just going to convert it. Conversion will also always cause complications, so I find it unnecessary. You don't really have to "think" about the syntax of TeX or groff because it's not really relevant while you're typing 99% of your words. It's really only used when you're formatting special things or setting settings, plus you learn it very quickly. Plus, I use vim snippets to write most of my syntax.
@thescrawl65946 жыл бұрын
@@LukeSmithxyz That makes sense, I'll start using it for my documents and see if I can get into it. Too bad my school forces me to use *google docs* for everything.
@yoshi3146 жыл бұрын
that's the problem with those programs - they don't get enough publicity. thanks for the heads up for entr and tsp.
@DrUlrih6 жыл бұрын
What is your terminal, it looks very nice..
@Spoteddy5 жыл бұрын
99% of this makes no sense to me :D But it looks very interesting. Also do you ever use your computer for normal stuff like facebook or twitter? :D
@MattJesuele5 жыл бұрын
lol
@notiashvili6 жыл бұрын
What do you think of watchman, the tool that Facebook made that accomplishes the same thing?
@adityams16593 жыл бұрын
*Whats the name of the font used in the terminal above!!??*
@ss-xy2im6 жыл бұрын
Would like to know how you resize and move your windows
@ShaneNull5 жыл бұрын
I can use this with doctoc updates table of contents on markdown files maybe have vim do this on any .md so I don't have to add every file? also I was looking into git hooks for this
@Jupiter__001_5 жыл бұрын
Sabaton - For whom the bell tolls I see you have good taste ;)
@okaythisisepic32125 жыл бұрын
Anybody knows where I can find more info about the compile script he uses?
@jamalkhan8156 жыл бұрын
Wow, I'm impressed, any tips on how to learn coding and this Linux based operating system, at the moment I'm using Windows only??
@Simon-xi8tb5 жыл бұрын
here is a tip: remove windows, install linux
@wherestheshroomsyo5 жыл бұрын
I can't figure out how to make entr run multiple commands after a file change. I tried separating them with ; I tried putting that in double quotes, single quotes, two sets of quotes, I tried it with &&. What am I doing wrong? edit: actually I did figure it out, use entr -s "multiple;Commands;Go;Here;" after reading the man page, I didn't expect -s to be what I wanted, -s will also tell me which shell I'm using and what the exit code is, and that's cool but kinda weird when my use case is just writing one liners.
@elsholz23655 жыл бұрын
What about writing the command in another file? Would that work?
@wherestheshroomsyo5 жыл бұрын
@@elsholz2365 yeah that would work, Luke does that in larbs
@estebanmarin0026 жыл бұрын
What operating system are you using?
@huseyinfahriuzun22165 жыл бұрын
Can you please share your configs for ui and wm
@1Schueni6 жыл бұрын
I would like to start entr in the xinitrc, but that did not work. Is there another way to start entr automatically?
@jazzochannel Жыл бұрын
what is `inotifywait -e modify -e move -e attrib -e delete --fromfile -`?
@LemonChieff6 жыл бұрын
Wait are you using i3? Why is your bar on the top? I still don't know how to do that… I do use macOS as my daily driver and just run manjaro i3 in a vm :/
@teunissenstefan6 жыл бұрын
You type 'se' and then you get some sort of file prompt? What is that and how do you do it?
@mulllhausen6 жыл бұрын
do you mean at 5:41? i reckon he has created an alias command for his user. something like: alias se='cd ~/.scripts && ls' and stuck it in ~/.bashrc
@Jarvismachina Жыл бұрын
guys, i have a problem i need this utility in the server, but I have no root access to install. can u guys help me how can I have that ?
@shankaranarayana65684 жыл бұрын
Hey, what did you use to search for that autocomp file?
@sellus4956 жыл бұрын
Thanks, using podboat is always a pain in the ass. Is entr always running in the background though checking for file updates? Isn't that huge bloat?
@LukeSmithxyz6 жыл бұрын
It doesn't use any significant system resources, you can check it yourself. For example, on my machine now, my inactive mpd instance and my inactive notification manager are taking up much more system resources than entr. If you really were concerned, I'm just it wouldn't be too hard to make a wrapper for newsboat that autostarted/stopped entr.