Skip to content

Instantly share code, notes, and snippets.

@timcharper
Created January 21, 2010 23:02
Show Gist options
  • Save timcharper/283304 to your computer and use it in GitHub Desktop.
Save timcharper/283304 to your computer and use it in GitHub Desktop.
...
ss ()
{
name=$1;
shift;
echo $name;
TERM=screen screen -S $name -c $HOME/.screen/$name $*
}
# .screen/jruby
source ${HOME}/.screen/screenrc
caption always "%{-u wk} %L=%-Lw%45>%{+ Gk} %n%f* %t %{-}%+Lw%-0< %=%{rw} JRuby "
setenv PATH "$HOME/.rvm/rubies/jruby-1.4.0/bin"
setenv GEM_PATH $HOME/.rvm/gems/jruby-1.4.0/
setenv GEM_HOME $HOME/.rvm/gems/jruby-1.4.0/
screen
title "JRuby"
stuff "cd ~/Projects/\015" # Useful if you want to have a change to a directory by default.
# .screen/screenrc
# Remap escape char to C-\
escape \034\034
vbellwait 0.25
startup_message off
shell "-/bin/bash"
defscrollback 5000
caption always "%{-u wk} %L=%-Lw%45>%{+ Gk} %n%f* %t %{-}%+Lw%-0< %=%{ck} %H | %M %d %c "
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment