• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

自分用メモ。
screenでは複数windowを開いていますが、最近なんとなく開く数が決まってきたので、最初から開いておくようにしました。瀧内さんは以前8つ開いてるって言ってたので(!)、私の6つなんか かわいいものなハズ。

windowの役割

現在のメインプロジェクトはブログなので、それをベースに以下の5つを開いています。

  • 0 emacs, エディタ
  • 1 shell
  • 2 tail -f log/development.log
  • 3 script/console
  • 4 同時進行のプロジェクト: folked prawn.git
  • 5 railsのdir ソースを読むのに使う

2008.10.03の.screenrc

他の人よりはショボショボなのですが、ご愛敬ということで。 emacsclientを使っているので、emacsはフルパスで書いています。

   1  escape ^tt
   2  
   3  hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w"
   4  scrollback 4000
   5  vbell off
   6  #idle 1200
   7  #blankerprg /usr/local/bin/tss
   8  
   9  chdir "/home/hibi/blog.git" #メインのprojectに移動
  10  
  11  #screen -t emacs 0 /usr/bin/emacs #emacs 21.4
  12  screen -t emacs 0 /usr/local/bin/emacs
  13  screen -t bash 1
  14  stuff "ruby ./script/server -d" #開いたwindowにこのコマンドだけ入力しとく、実行してもいいのですが実行したくない時も多いので
  15  
  16  screen -t tail 2 tail -f log/development.log
  17  
  18  screen -t console 3 ruby ./script/console
  19  
  20  chdir "/home/hibi/my.prawn.git"
  21  screen -t prawn 4 #前の行でcdしてからwindowを開く
  22  
  23  chdir "/home/hibi/test/vendor/rails/actionpack/lib/action_controller"
  24  screen -t rails 5
  25  
  26  chdir "/home/hibi/blog.git" #以後開くすべてのwindowをblog.gitにするため
  27  select 1 #window1を選択

Refs

http://www.limy.org/program/screen_command.html:日本語リファレンス
http://www.pervasivecode.com/blog/2007/06/12/gnu-screen-and-my-screenrc/
http://technique.sonots.com/?UNIX/設定、設定ファイル/.screenrc

posted by Png satoko on Fri 3 Oct 2008 at 15:48

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry926
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ