7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sublime Text2でRailsCasts Themeを手に入れる

Posted at
RailsCastsのThemeを手に入れる!

ちなみにRailsCastsとは、RailsのTipsをPodcasting!
Rails + 英語の勉強が出来てしまう2度美味しいオープンソース!

Package Controleのインストール

インストールするにはメニューからView > Show Consoleでコンソールを立ち上げて下記のコマンドを実行。

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')

Package ControleはCommand Palleteから実行されており、Command Pallet はcmd + shift + p(OS X)で開けます。

Command Palletはパッケージのインストール、リポジトリの追加、パッケージの削除などいろいろ便利。
他にもいろいろなコマンドもあります。

各種設定

コマンドラインのセットアップ

コマンドラインからSublime Text2を起動するためにsublへのシンボリックリンクを作成する。

$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

※シンボリックリンクとは:あるファイルやディレクトリに別の名前を与え、ユーザやアプリケーションがその名前をファイル本体と同様に扱えるようにする仕組み。lnコマンドで実行。

これでsublをコマンドラインで動かせるようになります。
きちんと実行されていればsubl --helpでヘルプが参照できます。

テーマの適用

RailsCastsのテーマを適用

下記からテーマをダウンロード

Download Textmate Theme

設定

ダウンロードしたテーマファイルをSublime Text2のパッケージディレクトリへ配置

% cp ~/Downloads/Railscasts.tmTheme ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/

これでSublime Text2を起動してSublime Text2 > Preference > Color Scheme > Railscastsを選択すると、Railscastsのテーマが適用されます!

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?