Example screenrc file




















If you don't like ctrl-a your terminal program has a problem with it for some reason, or perhaps you use a piece of software that requires use of ctrl-a a lot , you can change the command key temporarily via the command line, or more permanently via one of your screenrc files.

For example, to change to ctrl-g, you could use the command line:. Thank you very much! I really enjoy this mailing list.! Actually, using xterm and your trick I'm able to do exactly what I want with. Many of us use the excellent OpenSSH as a secure, encrypted replacement for the venerable telnet and rsh commands. And one of the main appeals of RSA and DSA authentication is the promise of being able to establish connections to remote systems without supplying a password.

It acts as a front-end to ssh-agent, allowing you to easily have one long-running ssh-agent process per system, rather than per login session. This dramatically reduces the number of times you need to enter your passphrase from once per new login session to once every time your local machine is rebooted.

Keychain was first introduced in a series of IBM developerWorks articles. Not only does it give you the ability to multiplex many windows inside of one terminal, you can "detach" and "reattach" the screen session. So, you ssh to your server somewhere, and open up a bunch of windows doing various things. Then, you decide to go drink beer at the pub, who just happens to have wireless , so you ssh from your laptop to the server, and reattach.

Voila again. You're back working where you were, and you didn't have to quit everything you were doing and set it back up again later. A lot of people use this for irc, to avoid quitting and rejoining the network frequently. But it's useful for any interactive shells you'd like to pick back up later, possibly from a new location.

Whether you're already familiar with screen or just learning about it, here's a cool tip. This will give you a screen status line at the bottom of your terminal, showing the names of all your virtual windows, which one was previously active for ctrl-a, ctrl-a flipping , and will show the currently active window name.

This is really handy, especially if you're like me and have anywhere from 5 to 30 windows open in various screen sessions. If I want to change to "foo. Sorry, something went wrong. Amazing config file. I had fixed the annoying screen 8 colors using your config file. Skip to content. Sign in Sign up. Instantly share code, notes, and snippets. Created Nov 3, Code Revisions 1 Stars Forks Embed What would you like to do?

Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Skip to content. Sign in Sign up. Instantly share code, notes, and snippets.

Last active Nov 8, Code Revisions 6 Stars 20 Forks 4. Embed What would you like to do? It's widely packaged for other up-to-date distros aswell. It does depend on python, but once you have byobu set up as you like it, you can have it generate a tar ball containing all you need to recreate your screen on another computer using byobu-export. I also have my shell tell screen what the current process name is and what directory I'm in, so my tab names stay up to date with what I'm doing in each tab.

This is critical to remembering what I'm doing where without having to flick through all my open tabs. The most useful screen customization, IMHO, is to change the modifier key to something other than C-a. That is just too important of a key to have eaten go to the beginning of the line at all readline prompts, and in emacs.

I use C-z, since I need to suspend applications a lot less often than I need to edit something at the beginning of the line. I often have more than 10 windows running and wanted a way to select them.

Sick of full-screen programs like vim remaining in the scrollback buffer after you've closed them? Wouldn't it be great if they'd go away completely just like they do when you're not running screen? It seems complicated, but it actually works really well.

I also can't live without the menu bar. One thing I do not like putting on the menu which a lot of people have is the time; it prevents PuTTY's scroll back from staying scrolled back since it's considered a screen update. If running rtorrent as a daemon with its own user account, this. Based on answers to How to force Gnu screen to load my bash. Sign up to join this community. The best answers are voted up and rise to the top.

Stack Overflow for Teams — Collaborate and share knowledge with a private group.



0コメント

  • 1000 / 1000