Live data from Hacker News

Benefits of using tmux – streamlining your development environment

blog.bugsnag.com

91–100 of 172 posts

Re: Benefits of using tmux – streamlining your development environment

#91
post #62

To me tmux, like a lot of tools, suffers from bad defaults that makes it less enjoyable to use. One example is not being able to scroll with a mouse. I usually find someone's tmux.conf online and use it, but always run into strange problems that I don't have the energy figuring out. My current conf suffers from the navigation bar going completely black when I try to rename a pane (can't see what i'm typing). Really w…

There's no reason to insult the project just because the default settings don't behave exactly how you want them to.

I personally like the default mouse setting, but you're completely free to change it if you don't. People have different preferences, that's why there are configuration settings to change things.

Re: Benefits of using tmux – streamlining your development environment

#93
post #90

Earlier quoted context omitted.

I'm writing an i3/tmux integration similar to iTerm2's[0], but working at the WM layer, using i3 and urxvt. The reason I'm doing this is that I'm often ssh'd into a box, and having to ssh into multiple terminal is a chore. I often create a spontaneous term that I close after a couple of minutes. Being able to have a dedicated ssh'd workspace where every split is ssh'd into the box would be a godsent. This would also…

This would be great if you get it working. I don't suppose you've got a link for what you've got so far in git or anything? I only make basic use of tmux because I'm more comfortable with i3 key bindings.

Well, it's extremely rudimentary but I put everything on github :

https://github.com/roblabla/i3-tmux-integration/tree/in-prog...

I'm still stumbling in the dark trying to understand how everything works. Also, the code might be an abomination, my goal was mostly to get stuff working, refactoring will come later.

This project is at once a learning project for many things (tmux internals, Rust, IPC in general, i3 IPC) and a tool I've been really needing for a while, so progress is slow but steady (I mostly work on it in sleepless nights and week-ends).

Re: Benefits of using tmux – streamlining your development environment

#95
post #76

Earlier quoted context omitted.

killall and pkill don't work if the thing I'm trying to grep for isn't the first word of the process string. Let's say I'm trying to kill 'python foobar.py' but I don't want to kill 'python bazquux.py'. The only thing it'll respond to with killall is 'killall python', but then both of them will respond. So I have to grep out the parameter and then kill that, with: ps -ef | grep 'foobar.py' | awk '{print "kill -9 " $2…

Check out -f parameter of pkill.

Ooh... nice! Thanks!

Re: Benefits of using tmux – streamlining your development environment

#96

I use a tool called tummy ( https://github.com/minhajuddin/tummy full disclosure: built by me) which allows me to create a Tmuxfile per project. A typical file looks like this: session "liveform" directory "/home/minhajuddin/r/liveform/frontend" window "src", [ pane("vim TODO"), ] window "server-pry", [ pane("puma --port 3000 --config

Nice! I've hacked some shell scripts together to do something similar, but this is way better!

Re: Benefits of using tmux – streamlining your development environment

#97
post #49

This is actually why I prefer Emacs. I can literally do all my development work in Emacs, with a full-featured shell (e-shell), directory explorer (dir-ed), REPL and full IDE for Clojure (CIDER). It's pretty great.

Shameless plug for https://github.com/adamrt/sane-term

I use it (and created it) so I could use ansi-term instead of e-shell. Then C-c C-j lets you treat the term like a normal buffer (move, yank, etc), and C-c C-k when you are done lets you switch back to normal term style buffer.

Re: Benefits of using tmux – streamlining your development environment

#98
post #72

Earlier quoted context omitted.

I used to use tools like that (tummy, teamocil, etc) but I've since discovered tmux-resurrect. It persists tmux sessions, windows, panes, and a whitelist of non-destructive commands like vim and top across reboots. Now my tmux sessions just organically grow and shrink as necessary and I never worry about having to recreate them. Of course I can see the case for combining both tools. If you have a lot of projects, and…

Does it save environment variables too?

I don't believe it does save env vars. However, as an owner of a crashy 2010 MBP, tmux-resurrect saves my bacon several times a week. I very highly recommend it.

Re: Benefits of using tmux – streamlining your development environment

#99

If you use tmux and vim, and if you run tests, then you must look at janko-m/vim-test and vim-dispatch. Runs any test seamlessly in the background. Vim-dispatch also has the best intro video to anything ever ;) https://vimeo.com/63116209

Video is awesome. What is the advantage over just having a separate tmux/screen session in which you launch your command though?

Re: Benefits of using tmux – streamlining your development environment

#100
post #49

This is actually why I prefer Emacs. I can literally do all my development work in Emacs, with a full-featured shell (e-shell), directory explorer (dir-ed), REPL and full IDE for Clojure (CIDER). It's pretty great.

> a full-featured shell (e-shell)

My experience wasn't so simple. Griefs: coloring, git support problems, bash aliases. I'm sure there's a way to get it to work, but I wouldn't call it a full featured shell out-of-the-box; at least, it doesn't really compare with Terminal.

Post reply on HN