TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Tools I Use - tmux

140 点作者 b14ck超过 13 年前

25 条评论

sequoia超过 13 年前
Some other cool features:<p>Monitoring background windows: with monitor-activity, monitor-silence, and monitor-content [term], you get a visual notification when there is activity, a certain period of silence, or an occurrence of [term], respectively, in a specified background window. Sometimes I open several error logs in a background window and monitor-activity so I get a notification if anything is written.<p>synchronize-content: I've only used this a few times but it's a neat trick! With several panes open in one window you can send keystrokes to all the panes at once. I've used this while connected to more than one server to compare the contents or make changes simultaneously. I won't claim this is the safest way to work but it comes in handy.<p>Managing windows and panes in tmux is pretty painless, in my experience. Resizing, switching, etc. are all very simple. One final feature I like, tho it's trivial, is the "show the time" command (bound to prefix-t). Invoking it gives you a nice big digital clock in a window or pane. I put this below my ttytter pane so I don't lose track of time. :)<p>I don't know how much of this you can do in screen as I've never used it, I'm sure there's a lot of overlap, but as a sometimes very critical software user let me say: I love tmux.
tikhonj超过 13 年前
I actually use Emacs and shell-mode to do exactly this. It has its own advantages and disadvantages, and only makes sense for people already using Emacs, but it's definitely something to consider.<p>A neat trick: by default, C-u M-x shell opens a shell with a custom buffer name in another window (in Emacs, the different panes are called "windows") in a specified directory. If you're editing a file remotely with TRAMP, the shell will be opened remotely as well.<p>I find this <i>really</i> useful when I'm editing multiple files on multiple remote systems and need to run some commands. This also integrates well with the rest of Emacs, making working with multiple shells, different files and other stuff really easy.
jodrellblank超过 13 年前
I tried tmux earlier today and found a very nice feature:<p>I have an SSH session to a remote linux server from my computer, then connect a new SSH session from my BlackBerry, and run 'tmux attach' in it.<p>The tmux session on the computer resizes to the size of the BlackBerry terminal, and both PuTTY and BBSSH show the same content, and both can interact with it.<p>Disconnect the BB, and the computer terminal resizes back to what it was.
评论 #3439046 未加载
phzbOx超过 13 年前
I went from "Terminal" to "screen" to "tmux" to "stumpwm". Baiscally, what I really liked of tmux is the way I could frame my terminals logically or fullscreen easily. I also really enjoyed the fact that I had multiple "workspace". Basically, my WM was just not appropriate for the way I liked to work. Stump fixed that. It's dynamic, I can hack it from emacs and it has everything I liked about tmux. Obviously, I'm talking from my desktop perspective, if I'm working somewhere else remotely it's a different story.
tkrajcar超过 13 年前
I use screen regularly, but mostly to be able to attach and detach to sessions as I move between work, home, etc.<p>tmux users frequently tout its ability to do nifty split screens and other window management, but I'm not sure I understand the value of doing this over just starting another iterm2 window/tab and using regular window management tools. Cmd-tilde or Cmd-tab is one less key than Ctrl-a, h.... :) What am I missing?
评论 #3439092 未加载
评论 #3439085 未加载
评论 #3445976 未加载
hkarthik超过 13 年前
The other awesome thing about tmux is being able to use it for remote pairing with vim or emacs. When working remotely, I use this a lot.
Dejital超过 13 年前
There are multiple problems with tmux on OS X. pbcopy and pbpaste, for instance, are entirely unusable. Even if tmux has some nice benefits over screen, it probably isn't worth it to the Mac user to switch.
评论 #3438989 未加载
评论 #3439010 未加载
评论 #3439263 未加载
评论 #3445969 未加载
technomancy超过 13 年前
What I don't understand is how both screen and tmux ship with bindings that conflict with readline. Did nobody notice, or did nobody care? Neither is usable without fixing this in config.
评论 #3440604 未加载
评论 #3440475 未加载
评论 #3452527 未加载
te_chris超过 13 年前
So I've recently got into using vim and quite like the split screen features. How would I mix something like this in for doing day to day running commands and editing stuff with a vim split screen workflow?<p>Sorry if this seems like a difficult question, but even stories of how people manage this would be great :)
评论 #3439084 未加载
评论 #3439144 未加载
benradler超过 13 年前
If you like tmux, you may love tmuxinator -- lets you keep your terminal sessions saved (even things like SSH that require login), and resume them exactly as you left.<p><a href="https://github.com/aziz/tmuxinator" rel="nofollow">https://github.com/aziz/tmuxinator</a>
thealistra超过 13 年前
The best thing I ever did in tmux, was to set a myTerminal variable in xmonad to "urxvtc -e tmux".<p>So every terminal window I open already has a tmux inside and I never have that "oh, it would be nice if I haven't forgot to turn tmux on" feeling.
Ryan_Shmotkin超过 13 年前
Or if used localy, go all in and install XMonad or Awesome. And get ALL your apps/windows tiled !
vectorpush超过 13 年前
tmux is amazing. A really handy command is send-keys. I use a fullscreen split pane setup with VIM in one and elinks in the other.<p>Inside my .vimrc:<p><pre><code> command W :w&#60;Bar&#62;execute 'silent !tmux send-keys -t 1 C-r'&#60;Bar&#62;redraw! </code></pre> This saves the buffer then sends ctr+r to pane 1 (elinks in my case), which causes a page refresh. It's very useful when debugging web scripts.
Drbble超过 13 年前
Many previous discussions: <a href="http://www.hnsearch.com/search#request/submissions&#38;q=tmux&#38;start=0" rel="nofollow">http://www.hnsearch.com/search#request/submissions&#38;q=tmu...</a>
rlvesco7超过 13 年前
I've been playing with byobu and I like it a lot.<p><a href="http://blog.dustinkirkland.com/search/label/Byobu" rel="nofollow">http://blog.dustinkirkland.com/search/label/Byobu</a><p>You can use either a screen or tmux backend.
chrismealy超过 13 年前
I used screen for 15 years but recently switched because I liked tmux's easy-to-read conf file and scriptability.<p>Mac OS X users watch out, launchctl commands barf mysteriously inside of tmux.
评论 #3439250 未加载
joeshaw超过 13 年前
I absolutely love tmux and use it everyday, but the killer feature I really want is tighter integration with a terminal emulator like iterm2. I would love to be able to attach to a tmux session with iterm2 and scroll using two-finger scrolling, while still being able to detach from the session and re-attach remotely.<p>It would seem like this would be a possibility given tmux's design, which is a lot more flexible than GNU screen's.
评论 #3441520 未加载
pyrhho超过 13 年前
I keep having this nagging feeling I should use tmux more often. Right now I use it for remote pairing type stuff, but I can never bring myself to use it regularly. I love tmux, and it's super useful, but I just can't deal with the way it breaks scrolling. tmux and screen both horribly break scrolling and reverse searching. I'm not sure what the fix is, but until that works I can't see myself using it regularly.
评论 #3439369 未加载
评论 #3439441 未加载
justinlilly超过 13 年前
I was rather inspired by this and decided to write up my tmux config with org-babel as literate programming. Hope someone likes it: <a href="http://justinlilly.com/dotfiles/tmux.html" rel="nofollow">http://justinlilly.com/dotfiles/tmux.html</a>
zobzu超过 13 年前
what i like about tmux: - its actually faster than screen to startup - all the stuff everyone lists/knows/blog post<p>what i dont like about tmux: - it schokes on some weirdo programs while screen seems pretty reliable on anything<p>thus i end up on screen more often than not
评论 #3438987 未加载
dolzenko超过 13 年前
One note though - both screen and tmux introduce some delay making the text appear a tad slower (I'm using it over SSH strictly, no idea about 'native console'), does anyone know the solution?
评论 #3459535 未加载
gaving超过 13 年前
Big thing holding me back from tmux is the lack of cygwin support for (unfortunately) my work environment. Otherwise, I'd switch cold turkey.
akg超过 13 年前
I love using terminal multiplexors, but prefer GNU Screen since it is almost always available wherever I need it. For those interested, I use the following to show a status line -- comes in handy when you want to name difference screens. You can always name a screen using "C-a A"<p><pre><code> hardstatus alwayslastline "%?%{yk}%-Lw%?%{yk}%n*%f %t%?(%u)%?%?%{yk}%+Lw%?"</code></pre>
评论 #3440055 未加载
g3orge超过 13 年前
I just switched. The only thing I changed is the prefix to Ctrl-A like Screen.
anddd超过 13 年前
ftfy - screen supports vertical splits too: ^A |
评论 #3439769 未加载