Skip to content

timcharper/screenmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screen Manager Starter Kit

Overview

This is a collection of configuration files to help you use screen to manage your project environments.

A few things that you can do with it:

  • set environment variables (useful if you want to specify a version of Ruby to use for a project)
  • automatically fire up a database server or something

See the source for examples

Setup

Install Screen

cd ~
git clone git://github.com/timcharper/screenmanager.git .screen
ln -s ~/.screen/screenrc .screen
echo ". ~/.screen/sm.bash" >> ~/.bash_profile

Then, this being a starter kit, you’ll need to modify the files to suit your needs. See “sample” for an example of what’s possible.

Give screen manager the ability to have the last say on the PATH variable

# This line was installed for screen manager should go at the very end:
[ -n "$SM_PATH" ] && export PATH=$SM_PATH:$PATH

Configure your rubies

If you’re using RVM

The examples assume you’ve installed rubies with rvm.

If you look at ~/.screen/ruby19 as an example, it sets the environment variable $RUBY is simply the ruby version, verbatim as the folder is named in ~/.rvm/rubies. Once set, it loads ~/.screen/rvm, which sets the environment variables necessary to activate that ruby.

Manual installations of ruby

~/.screen/rvm will serve as an example for how to setup your environment. You might try copying it to ~/.screen/your-ruby-name, and then modifying the paths to match your ruby paths respectively.

Invoking

Depending on your setup, you commands will vary. Once installed, type sm to fire up or resume a screen session named one of ~/.screen/*.

Conclusion

Be nice, love your neighbor like yourself.

About

Screen Manager starter kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published