<?xml version="1.0" encoding="UTF-8"?>
<post>
  <allowed-comments type="integer">1</allowed-comments>
  <allowed-pings type="integer">1</allowed-pings>
  <author-id type="integer">2</author-id>
  <body>_&#26412;&#25991;&#26159;&#25105;&#25171;&#31639;&#20889;&#30340;&#38024;&#23545;mac&#26032;&#25163;&#30340;&#25991;&#31456;&#20043;&#19968;&#65292;&#23545;&#20110;&#24050;&#30693;&#32773;&#21487;&#20197;&#36873;&#25321;&#38405;&#35835;&#26412;&#21338;&#23458;&#30340;&#20854;&#23427;&#25991;&#31456;&#65292;&#25110;&#32773;&#32487;&#32493;&#38405;&#35835;&#32473;&#26412;&#25991;&#26597;&#28431;&#34917;&#32570;&#12290;_

&#23545;&#20110;&#25105;&#36744;Coding&#20013;&#20154;&#26469;&#35828;&#65292;&#22823;&#22810;&#26377;&#20005;&#37325;&#30340;&#32456;&#31471;&#20381;&#36182;&#30151;&#29366;&#12290;&#20855;&#20307;&#34920;&#29616;&#20026;&#26377;&#19968;&#20010;&#24819;&#27861;&#25110;&#32773;&#38656;&#27714;&#26102;&#65292;&#24635;&#26159;&#20250;&#20808;&#21628;&#20986;&#32456;&#31471;&#22312;&#37324;&#38754;&#25443;&#40723;&#19968;&#30058;&#12290;&#21363;&#20351;&#25105;&#20204;&#32654;&#20029;&#19982;&#26234;&#24935;&#24182;&#37325;&#30340;mac&#37324;&#20248;&#31168;&#30340;&#36719;&#20214;&#23618;&#20986;&#19981;&#31351;&#65292;&#20294;&#22914;&#33021;&#22312;shell&#37324;&#35299;&#20915;&#30340;&#32477;&#19981;&#21160;&#29992;&#37027;&#20040;&#24222;&#22823;&#30340;&#27494;&#22120;&#12290;&#36825;&#26159;&#22522;&#30784;&#27861;&#21017;&#20043;&#19968;&#12290;

&#24403;&#28982;&#36825;&#19981;&#26159;&#20170;&#22825;&#30340;&#20027;&#39064;&#65292;&#36825;&#37324;&#35201;&#35828;&#30340;&#26159;&#22914;&#20309;&#35753;mac&#19979;&#30340;&#32456;&#31471;&#26356;&#20859;&#30524;&#65292;&#20687;&#20010;&#33457;&#26525;&#25307;&#23637;&#30340;&#23567;&#23138;&#19968;&#26679;&#65292;&#32780;&#19988;&#36148;&#36523;&#20282;&#20505;&#20320;&#65292;&#19981;&#31649;&#20320;&#22312;&#21738;&#37324;&#65292;&#38543;&#21483;&#38543;&#21040;&#12290;&#36825;&#28041;&#21450;&#21040;&#20004;&#20010;&#26041;&#38754;&#65292;&#19968;&#26159;&#25171;&#25198;&#65292;&#19968;&#26159;&#36148;&#36523;&#20282;&#20505;&#12290;

&#20808;&#35828;&#25171;&#25198;&#21543;&#65292;mac&#30340;&#32456;&#31471;&#40664;&#35748;&#25991;&#20214;&#31867;&#22411;&#26159;&#19981;&#24425;&#26174;&#30340;&#65292;&#35753;&#20854;&#24425;&#26174;&#30340;&#26041;&#27861;&#24456;&#22810;&#65292;&#36825;&#37324;&#20171;&#32461;&#20004;&#31181;&#26041;&#24335;&#65306;

**&#31532;&#19968;&#31181;&#65306;** &#35774;&#32622;ls&#21035;&#21517;&#65292;&#25171;&#24320;&#32456;&#31471;&#65292;&#36755;&#20837;&#65306;

	vi ~/.bash_profile
	
  &#25105;&#20204;&#20351;&#29992;ls&#21629;&#20196;&#30340;-G&#36873;&#39033;&#26469;&#20801;&#35768;&#24425;&#33394;&#36755;&#20986;&#65292;&#22240;&#27492;&#25353;i&#36827;&#20837;&#32534;&#36753;&#27169;&#24335;&#65292;&#22312;&#25991;&#20214;&#20013;&#36755;&#20837;&#65306;

	alias ls=&quot;ls -G&quot;

  &#25353;ESC&#36864;&#20986;&#32534;&#36753;&#27169;&#24335;&#65292;&#28982;&#21518;&#25970;&#20837;:x&#36864;&#20986;&#32534;&#36753;&#22120;&#12290;&#38543;&#21518;&#22312;&#32456;&#31471;&#37324;&#36755;&#20837;&#65306;

	source ~/.bash_profile

  &#27492;&#26102;&#25171;&#24320;&#19968;&#20010;&#26032;&#30340;&#32456;&#31471;&#31383;&#21475;&#65292;&#24182;&#36755;&#20837;&#8220;ls&#8221;&#21363;&#21487;&#30475;&#21040;&#25928;&#26524;&#12290;

**&#31532;&#20108;&#31181;&#65306;** &#35774;&#32622;CLICOLOR&#29615;&#22659;&#21464;&#37327;&#65292;&#21516;&#26679;&#30340;&#25171;&#24320;&#32456;&#31471;&#65292;&#36755;&#20837;&#65306;

	vi ~/.bash_profile

  &#25353;i&#36827;&#20837;&#32534;&#36753;&#27169;&#24335;&#65292;&#22312;&#25991;&#20214;&#20013;&#36755;&#20837;&#65306;

	export CLICOLOR=1  
	export LSCOLORS=gxfxcxdxbxegedabagacad  
	export TERM=xterm-color

  CLICOLOR&#29992;ANSI&#39068;&#33394;&#39034;&#24207;&#26469;&#21306;&#20998;&#25991;&#20214;&#31867;&#22411;&#65292;&#32780;LSCOLORS&#25551;&#36848;&#20102;&#35813;&#20351;&#29992;&#21738;&#20123;&#39068;&#33394;&#65292;TERM&#26159;&#20026;&#20102;&#22312;iTerm&#19979;&#20063;&#21487;&#29992;&#12290;&#23545;&#20110;&#39068;&#33394;&#30340;&#35814;&#32454;&#25551;&#36848;&#35265;[&#36825;&#37324;](http://www.FreeBSD.org/cgi/man.cgi?query=ls&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+7.1-RELEASE&amp;format=html)&#30340;ENVIRONMENT&#19968;&#33410;&#12290;

  &#21516;&#26679;&#30340;&#65292;&#25353;ESC&#36864;&#20986;&#32534;&#36753;&#27169;&#24335;&#65292;&#28982;&#21518;&#25970;&#20837;:x&#20445;&#23384;&#24182;&#36864;&#20986;&#32534;&#36753;&#22120;&#12290;&#24182;&#22312;&#32456;&#31471;&#37324;&#36755;&#20837;&#65306;

	source ~/.bash_profile

  &#25171;&#24320;&#32456;&#31471;&#24182;&#27979;&#35797;&#25928;&#26524;&#12290;

&#23567;&#23567;&#30340;&#25171;&#25198;&#19968;&#19979;&#21518;&#20250;&#20859;&#30524;&#24456;&#22810;&#65292;&#21508;&#31181;&#25991;&#20214;&#31867;&#22411;&#19968;&#30446;&#20102;&#28982;&#12290;&#19981;&#36807;&#36824;&#26159;&#26377;&#19968;&#20123;&#38382;&#39064;&#65292;&#25105;&#33021;&#19981;&#33021;&#20351;&#29992;&#21487;&#35270;&#21270;&#30340;&#30028;&#38754;&#26469;&#37197;&#33394;&#21602;&#65311;&#25105;&#33021;&#19981;&#33021;&#26377;&#26356;&#22810;&#30340;&#32456;&#31471;&#26679;&#24335;&#21602;&#65311;&#22238;&#31572;&#24403;&#28982;&#26159;ok&#30340;&#65292;&#36825;&#20854;&#23454;&#20063;&#24341;&#30003;&#20986;&#20102;&#19968;&#20010;&#38382;&#39064;&#65306;

&gt; Some applications do about 90% of what I want.

&#23545;&#20110;Coder&#26469;&#35828;&#65292;&#21487;&#20197;&#26159;&#36825;&#26679;&#30340;&#35299;&#20915;&#26041;&#26696;&#65306;

&gt; Develop my own applications.

&#19981;&#36807;&#23545;&#20110;&#24456;&#22810;&#25042;Coder&#26469;&#35828;&#65292;&#22914;&#26524;&#21482;&#26159;&#25171;&#20010;Patch&#23601;&#33021;&#28385;&#36275;&#33258;&#24049;&#19981;&#26159;&#26356;&#22909;&#20040;&#65306;

&gt; Patch the application myself...

&#36825;&#19977;&#21477;&#35805;&#20063;&#26159;[SIMBL (Smart InputManager Bundle Loader)](http://www.culater.net/software/SIMBL/SIMBL.php)&#30340;&#30001;&#26469;&#12290;&#23427;&#20351;&#24471;&#20320;&#21487;&#20197;&#38024;&#23545;&#26576;&#20010;app&#25171;&#20010;patch&#65292;&#35753;&#36825;&#20010;app&#30340;&#26368;&#21518;10%&#20063;&#35753;&#20320;&#28385;&#24847;&#12290;

&gt; SIMBL allows you to build hacks for Cocoa applications and apply the code selectively based on an application's unique identifier.

&#22909;&#20102;&#65292;&#20026;&#20102;10%&#65292;&#25105;&#20204;&#32487;&#32493;&#25105;&#20204;&#30340;&#27493;&#39588;&#65306;

* &#23433;&#35013;SIMBL

* [&#28857;&#20987;&#36825;&#37324;](http://ciaranwal.sh/files/TerminalColours.bundle.zip)&#19979;&#36733;[TerminalColors](http://ciaranwal.sh/2007/11/01/customising-colours-in-leopard-terminal)&#36825;&#20010;&#32456;&#31471;&#25554;&#20214;&#65292;&#35299;&#21387;&#32553;&#21518;&#23558;&#20854;&#25918;&#32622;&#21040;&#65306;~/Library/Application Support/SIMBL/Plugins/&#65292;&#22914;&#26524;&#35813;&#30446;&#24405;&#19981;&#23384;&#22312;&#65292;&#21487;&#20197;&#33258;&#24049;&#24314;&#31435;&#12290;

* [&#19979;&#36733;&#37197;&#33394;&#25991;&#20214;](http://www.infinitered.com/settings/IR_Black.terminal.zip)&#65292;&#36825;&#20010;&#37197;&#33394;&#22522;&#20110;IR_Black&#32780;&#26469;&#65292;&#19981;&#21916;&#27426;&#30340;&#21487;&#20197;&#30452;&#25509;&#36339;&#21040;&#26368;&#21518;&#19968;&#27493;&#12290;

* &#21452;&#20987;&#19979;&#36733;&#22909;&#30340;&#25991;&#20214;&#65306;IR_Black.terminal&#65292;&#20250;&#33258;&#24049;&#23433;&#35013;&#22909;&#12290;

* &#22914;&#26524;&#20320;&#21916;&#27426;&#36825;&#20010;&#37197;&#33394;&#22312;&#32456;&#31471;&#30340;&#20559;&#22909;&#35774;&#32622;&#37324;&#23558;&#20854;&#35774;&#32622;&#20026;&#40664;&#35748;

* &#22312;&#32456;&#31471;&#20559;&#22909;&#35774;&#32622;&#30340;&#25991;&#26412;&#35774;&#32622;&#37324;&#65292;&#20250;&#21457;&#29616;&#22810;&#20102;&#19968;&#20010;&#8220;More...&#8221;&#30340;&#25353;&#38062;&#65292;&#28857;&#20987;&#21518;&#21363;&#24320;&#22987;&#21487;&#35270;&#21270;&#37197;&#33394;&#12290;&#24182;&#19988;&#20320;&#20063;&#21487;&#20197;&#20174;&#32593;&#19978;&#19979;&#36733;&#20854;&#20182;&#20154;&#30340;&#37197;&#33394;&#25110;&#32773;&#23558;&#33258;&#24049;&#30340;&#37197;&#33394;&#20849;&#20139;&#20986;&#26469;&#12290;

&#27492;&#26102;&#22914;&#26524;&#20320;&#20351;&#29992;&#20102;&#25105;&#25512;&#33616;&#30340;&#37197;&#33394;&#65292;&#37027;&#20040;&#32456;&#31471;&#23558;&#20250;&#26159;&#36825;&#26679;&#65306;

[![my terminal colortheme](http://farm4.static.flickr.com/3554/3467147739_2526555763_o.png)](http://www.flickr.com/photos/nowa/3467147739/)

&#24403;&#28982;&#20320;&#30340;Prompt&#32943;&#23450;&#21644;&#25105;&#30340;&#19981;&#19968;&#26679;&#65292;&#19979;&#27425;&#25105;&#20204;&#20877;&#35752;&#35770;&#36825;&#20010;&#12290;&#26412;&#25991;&#20013;&#30340;&#37197;&#33394;&#36824;&#26377;For TextMate&#21644;Vim&#30340;&#65288;&#21644;&#21035;&#30340;IR_Black&#31995;&#21015;&#19981;&#19968;&#26679;&#65289;:

**For TextMate:** [&#28857;&#20987;&#19979;&#36733;IR_Black For TextMate](http://www.infinitered.com/settings/IR_Black.tmTheme.zip)

  ![IR_Black For TextMate](http://www.infinitered.com/blog_extras/textmate_theme_extras/syn_color_example_ruby.png)

**For Vim:** [&#28857;&#20987;&#19979;&#36733;IR_Black For Vim](http://blog.infinitered.com/entry_files/8/ir_black.vim)

  ![IR_Black For Vim](http://blog.infinitered.com/entry_files/8/vim_ir_black_sc2.png)

&#20851;&#20110;&#25171;&#25198;&#23601;&#35828;&#21040;&#36825;&#37324;&#65292;&#19979;&#19968;&#33410;&#25105;&#20204;&#20250;&#32487;&#32493;&#32473;Terminal&#25171;Patch&#65292;&#35843;&#25945;&#24471;&#23427;&#38543;&#21483;&#38543;&#21040;&#12290;

&#21442;&#32771;&#36164;&#26009;&#65306;

* [http://blog.infinitered.com/entries/show/6](http://blog.infinitered.com/entries/show/6)  
* [http://ciaranwal.sh/2007/11/01/customising-colours-in-leopard-terminal](http://ciaranwal.sh/2007/11/01/customising-colours-in-leopard-terminal)
</body>
  <categories-cache>8</categories-cache>
  <comments-count type="integer">1</comments-count>
  <created-at type="datetime">2009-04-24T00:00:26+08:00</created-at>
  <created-day>2009-04-24</created-day>
  <created-month>2009-04</created-month>
  <created-year>2009</created-year>
  <excerpt nil="true"></excerpt>
  <id type="integer">108</id>
  <permalink>terminalchapter-1</permalink>
  <protect-password></protect-password>
  <publish-status type="integer">1</publish-status>
  <tags-cache>colortheme terminal SIMBL textmate vim</tags-cache>
  <title>&#35843;&#25945;&#20320;&#30340;Terminal&#65292;Chapter 1</title>
  <trackbacks></trackbacks>
  <updated-at type="datetime">2010-03-11T09:55:28+08:00</updated-at>
  <views-count type="integer">1213</views-count>
</post>
