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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

My Development Environment, Part 1: GNU Screen

31 点作者 BigCanOfTuna超过 14 年前

7 条评论

barrkel超过 14 年前
In ~/.screenrc:<p><pre><code> altscreen on </code></pre> enables alternate screen, which is disabled by default, but is normally enabled in most terminals. It's the thing which prevents less, vi, etc. from clobbering the screen contents and leaving their gunk behind after exiting.<p>(A Google search seems to indicate that some people dislike this feature, but I found screen unusable until I discovered this option.)
评论 #1711020 未加载
swah超过 14 年前
Prediction: part 2 is vim and part 3 is about his pimped up bash prompt that shows the current Git branch. Or something like that.
zzzmarcus超过 14 年前
Here's the mandatory "if you're using GNU Screen check out tmux" comment.<p>Really though, check it out. The main thing I like better in tmux is that it does both horizontal and vertical split terminal windows in a way that seems much more intuitive to me than screen.
alinajaf超过 14 年前
This is absolutely uncanny. I've just started writing a similar blog post thread about my dev environment, and its similar to yours (i.e. screen (I'm moving to tmux though), vim, bash, etc.).
评论 #1711376 未加载
daleharvey超过 14 年前
I really wish there was a nice way to run nested screens, I like having screen run locally, but I always want to be able to easily attach and detach from screen sessions on my server. I know I can escape them with keyboard shortcuts, but its confusing and I have never managed to get used to it, so I generally do server screen sessions in a seperate terminal
评论 #1711410 未加载
评论 #1711291 未加载
adambyrtek超过 14 年前
Thanks for a solution to the problem of missing bright/bold colors that I found in your .screenrc. This issue hadn't bothered me much, otherwise I'd have researched it before, but it's nice to have it fixed anyway.<p>For reference, the option is question is<p><pre><code> attrcolor b ".I"</code></pre>
joealba超过 14 年前
Great post. Jon Druse created a Ruby gem recently that does something very similar -- but more project-oriented rather than global ~/.screenrc:<p><a href="http://github.com/jondruse/screeninator" rel="nofollow">http://github.com/jondruse/screeninator</a>