<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHPプログラマのバリ・ポジ情報ブログ &#187; Mac</title>
	<atom:link href="http://blog.veryposi.info/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.veryposi.info</link>
	<description>PHP,JavaScriptやサーバーの設定などのプログラミングに関する情報をバリ・ポジティブに発信しているプログラマのブログ、『バリ・ポジ』</description>
	<lastBuildDate>Thu, 10 May 2012 06:23:01 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Macでの開発環境の設定　〜 PHPの設定 〜</title>
		<link>http://blog.veryposi.info/server/server-setup/mac-product-env-php/</link>
		<comments>http://blog.veryposi.info/server/server-setup/mac-product-env-php/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 14:02:42 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[設定]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1418</guid>
		<description><![CDATA[&#160;MacへのPHPの設定です。 とりあえずconfigureの内容 &#160; 1 ./configure --prefix=/Users/hashizume/apps/app/php/5.2 --with- [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;MacへのPHPの設定です。</p>
<p>とりあえずconfigureの内容</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
</pre>
</td>
<td class="code">
<pre class="bash">
./configure --<span style="color: #007800;">prefix=</span>/Users/hashizume/apps/app/php/<span style="color: #000000;">5.2</span> --with-<span style="color: #007800;">apxs2=</span>/Users/hashizume/apps/app/httpd/bin/apxs --with-config-file-<span style="color: #007800;">path=</span>/Users/hashizume/apps/var/php/conf/<span style="color: #000000;">5.2</span> --with-config-file-scan-<span style="color: #007800;">dir=</span>/Users/hashizume/apps/var/php/conf.d/<span style="color: #000000;">5.2</span> --with-libxml-<span style="color: #c20cb9; font-weight: bold;">dir</span> --with-openssl --with-openssl-<span style="color: #c20cb9; font-weight: bold;">dir</span> --with-zlib --with-zlib-<span style="color: #c20cb9; font-weight: bold;">dir</span> --with-bz2 --enable-calendar --with-curl --enable-exif --enable-<span style="color: #c20cb9; font-weight: bold;">ftp</span> --with-gd --with-jpeg-<span style="color: #007800;">dir=</span>/Users/hashizume/apps/app/jpeg --with-png-<span style="color: #007800;">dir=</span>/Users/hashizume/apps/app/png --with-xpm-<span style="color: #c20cb9; font-weight: bold;">dir</span> --with-ttf --with-freetype-<span style="color: #007800;">dir=</span>/Users/hashizume/apps/app/freetype --with-<span style="color: #007800;">t1lib=</span>/Users/hashizume/apps/app/t1lib --enable-gd-native-ttf --enable-gd-jis-conv --with-<span style="color: #007800;">gettext=</span>/Users/hashizume/apps/app/<span style="color: #c20cb9; font-weight: bold;">gettext</span> --enable-mbstring --with-<span style="color: #007800;">mcrypt=</span>/Users/hashizume/apps/app/mcrypt --with-<span style="color: #007800;">mysql=</span>/Users/hashizume/apps/app/mysql --with-<span style="color: #007800;">mysqli=</span>/Users/hashizume/apps/app/mysql/bin/mysql_config --enable-pcntl --enable-pdo --with-pdo-<span style="color: #007800;">mysql=</span>/Users/hashizume/apps/app/mysql --enable-<span style="color: #c20cb9; font-weight: bold;">zip</span> --with-xsl</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>これで、make、make installで完了！！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/mac-product-env-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macでの開発環境の設定　〜 apacheの設定 〜</title>
		<link>http://blog.veryposi.info/server/server-setup/mac-product-env-apach/</link>
		<comments>http://blog.veryposi.info/server/server-setup/mac-product-env-apach/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 13:17:06 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[設定]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1415</guid>
		<description><![CDATA[&#160;Macにapacheをインストールした時の設定です。 ソースからコンパイルした時のconfigureは以下になります。 &#160; 1 ./configure --prefix=/Users/hashizu [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Macにapacheをインストールした時の設定です。</p>
<p>ソースからコンパイルした時のconfigureは以下になります。</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
</pre>
</td>
<td class="code">
<pre class="bash">
./configure --<span style="color: #007800;">prefix=</span>/Users/hashizume/apps/app/httpd/</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/mac-product-env-apach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macでの開発環境の設定　〜 MySQLの設定 〜</title>
		<link>http://blog.veryposi.info/server/server-setup/mac-product-env-mysq/</link>
		<comments>http://blog.veryposi.info/server/server-setup/mac-product-env-mysq/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 13:13:55 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[設定]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1413</guid>
		<description><![CDATA[&#160;Macに開発環境Apache、PHP、MySQLを構築するのにまずは MySQLから、インストールしてみました。 で、Macの環境が汚れるのがいやなのでなるべく汚さないように考えて ソースファイルからのコンパ [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Macに開発環境Apache、PHP、MySQLを構築するのにまずは</p>
<p>MySQLから、インストールしてみました。</p>
<p>で、Macの環境が汚れるのがいやなのでなるべく汚さないように考えて</p>
<ol>
<li>ソースファイルからのコンパイル</li>
<li>prefixを設定して特定のフォルダにインストールする</li>
</ol>
<p>という決まりでインストールするようにしました。</p>
<p>MySQLをインストールしたときのconfigureの内容です。</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
</pre>
</td>
<td class="code">
<pre class="bash">
./configure --<span style="color: #007800;">prefix=</span>/Users/hashizume/apps/app/mysql/ --with-<span style="color: #007800;">plugins=</span>partition,innobase,innodb_plugin,myisam --with-fast-mutexes</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>後は、make、make installでインストールできるのですが</p>
<p>開発環境でも、念のためにmaster、slave環境にしたかったので</p>
<p>mysql_install_dbのコマンドの２つのフォルダに対して実行しました。</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
</pre>
</td>
<td class="code">
<pre class="bash">
./mysql_install_db --<span style="color: #007800;">user=</span>mysql --<span style="color: #007800;">datadir=</span>/Users/hashizume/apps/var/mysql/master
./mysql_install_db --<span style="color: #007800;">user=</span>mysql --<span style="color: #007800;">datadir=</span>/Users/hashizume/apps/var/mysql/slave</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;こんな風に</p>
<p>で、mysqld_multiを使って２つのmysqldサービスを管理しようしたのですが、</p>
<p>mysql-5.1.50をインストールして使ってみたのですがどうもうまくいかない・・・</p>
<p>理由がわからん</p>
<p>ということで、mysqld_safeを使って別ポートでの起動をかければ同じことなのでいいやということで簡単にmysqld_safeを使って別ポートで起動するためのcnfファイルを２つ作成</p>
<p>それがこれ</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
3
4
5
6
7
8
9
10
</pre>
</td>
<td class="code">
<pre class="bash"><span style="color: #7a0874; font-weight: bold;">[</span>mysqld<span style="color: #7a0874; font-weight: bold;">]</span>
server-<span style="color: #c20cb9; font-weight: bold;">id</span> = <span style="color: #000000;">1</span>
log-bin
&nbsp;
<span style="color: #7a0874; font-weight: bold;">[</span>mysqld_safe<span style="color: #7a0874; font-weight: bold;">]</span>
socket     = /tmp/mysql_master.sock
port       = <span style="color: #000000;">3307</span>
pid-<span style="color: #c20cb9; font-weight: bold;">file</span>   = /Users/hashizume/apps/var/mysql/master/mysql.pid
datadir    = /Users/hashizume/apps/var/mysql/master
language   = /Users/hashizume/apps/app/mysql/share/mysql/japanese</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre>
</td>
<td class="code">
<pre class="bash"><span style="color: #7a0874; font-weight: bold;">[</span>mysqld<span style="color: #7a0874; font-weight: bold;">]</span>
server-<span style="color: #c20cb9; font-weight: bold;">id</span>  = <span style="color: #000000;">2</span>
read_only
master-<span style="color: #007800;">host=</span><span style="color: #000000;">127.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.1</span>
master-<span style="color: #007800;">port=</span><span style="color: #000000;">3307</span>
master-<span style="color: #007800;">user=</span>repl
master-<span style="color: #007800;">password=</span>slavepass
report-<span style="color: #007800;">host=</span>slave
&nbsp;
<span style="color: #7a0874; font-weight: bold;">[</span>mysqld_safe<span style="color: #7a0874; font-weight: bold;">]</span>
socket     = /tmp/mysql_slave.sock
port       = <span style="color: #000000;">3308</span>
pid-<span style="color: #c20cb9; font-weight: bold;">file</span>   = /Users/hashizume/apps/var/mysql/slave/mysql.pid
datadir    = /Users/hashizume/apps/var/mysql/slave
language   = /Users/hashizume/apps/app/mysql/share/mysql/japanese</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;それぞれのcnfファイルを使って起動するためのコマンドがこちら</p>
<p>&nbsp;</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
</pre>
</td>
<td class="code">
<pre class="bash">
mysqld_safe --defaults-extra-<span style="color: #007800;">file=</span>/Users/hashizume/apps/var/mysql/etc/my_master.cnf &amp;
mysqld_safe --defaults-extra-<span style="color: #007800;">file=</span>/Users/hashizume/apps/var/mysql/etc/my_slave.cnf &amp;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>あとは、レプリケーションの設定をすれば終了！！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/mac-product-env-mysq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macでの開発環境の設定　〜 screen 〜</title>
		<link>http://blog.veryposi.info/server/server-setup/mac-product-env-screen/</link>
		<comments>http://blog.veryposi.info/server/server-setup/mac-product-env-screen/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 12:53:28 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[設定]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1411</guid>
		<description><![CDATA[&#160;Macで開発するのにもう１つ必須なものですが、screenです。 使いこなせてないですが・・・ &#160; 自分が使っている.screenrcをさらします。 これは、どこからとってきたのか全く覚えてないです [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Macで開発するのにもう１つ必須なものですが、screenです。</p>
<p>使いこなせてないですが・・・<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sweat01.gif" /></p>
<p>&nbsp;</p>
<p>自分が使っている.screenrcをさらします。</p>
<p>これは、どこからとってきたのか全く覚えてないです<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/coldsweats01.gif" /></p>
<p>以下が、使っている.screenrcです</p>
<p><span id="more-1411"></span></p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
3
4
5
</pre>
</td>
<td class="code">
<pre class="bash">
escape ^Tt
startup_message off
defscrollback <span style="color: #000000;">10000</span>
msgwait <span style="color: #000000;">10</span>
hardstatus alwayslastline <span style="color: #ff0000;">&quot;%{= wk} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d %{=b wb}%c&quot;</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/mac-product-env-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macでの開発環境の設定　〜 vimの設定 〜</title>
		<link>http://blog.veryposi.info/server/server-setup/mac-product-env-vim/</link>
		<comments>http://blog.veryposi.info/server/server-setup/mac-product-env-vim/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 12:44:47 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[設定]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1395</guid>
		<description><![CDATA[&#160;Macでの開発環境作成、第２弾は、vimの設定です。 自分は、「emacs」が使えないのでvimを使っています &#160; 現在の.vimrcをさらします。 多分、「ずんwiki」からとってきたのかな・・・ [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Macでの開発環境作成、第２弾は、vimの設定です。</p>
<p>自分は、「emacs」が使えないのでvimを使っています<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sweat01.gif" /></p>
<p>&nbsp;</p>
<p>現在の.vimrcをさらします。</p>
<p>多分、「<a href="http://www.kawaz.jp/pukiwiki/?vim">ずんwiki</a>」からとってきたのかな・・・<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign02.gif" /></p>
<p>もうだいぶ昔のことで忘れてしまったよ<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy01.gif" /></p>
<p>ということで、俺の使っている.vimrcです。</p>
<p><span id="more-1395"></span></p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
</pre>
</td>
<td class="code">
<pre class="bash"><span style="color: #ff0000;">&quot; vim: set ts=4 sw=4 sts=0:
&quot;</span>-----------------------------------------------------------------------------
<span style="color: #ff0000;">&quot; 文字コード関連
&quot;</span>
<span style="color: #000000; font-weight: bold;">if</span> &amp;encoding !=<span style="color: #808080; font-style: italic;"># </span><span style="color: #ff0000;">'utf-8'</span>
	<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">encoding=</span>japan
	<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">fileencoding=</span>japan
endif
<span style="color: #000000; font-weight: bold;">if</span> has<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #ff0000;">'iconv'</span><span style="color: #7a0874; font-weight: bold;">)</span>
	<span style="color: #7a0874; font-weight: bold;">let</span> s:enc_euc = <span style="color: #ff0000;">'euc-jp'</span>
	<span style="color: #7a0874; font-weight: bold;">let</span> s:enc_jis = <span style="color: #ff0000;">'iso-2022-jp'</span>
	<span style="color: #ff0000;">&quot; iconvがeucJP-msに対応しているかをチェック
	if iconv(&quot;</span>\x87\x64\x87\x6a<span style="color: #ff0000;">&quot;, 'cp932', 'eucjp-ms') ==# &quot;</span>\xad\xc5\xad\xcb<span style="color: #ff0000;">&quot;
		let s:enc_euc = 'eucjp-ms'
		let s:enc_jis = 'iso-2022-jp-3'
	&quot;</span> iconvがJISX0213に対応しているかをチェック
	elseif iconv<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>87<span style="color: #000099; font-weight: bold;">\x</span>64<span style="color: #000099; font-weight: bold;">\x</span>87<span style="color: #000099; font-weight: bold;">\x</span>6a&quot;</span>, <span style="color: #ff0000;">'cp932'</span>, <span style="color: #ff0000;">'euc-jisx0213'</span><span style="color: #7a0874; font-weight: bold;">)</span> ==<span style="color: #808080; font-style: italic;"># </span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>ad<span style="color: #000099; font-weight: bold;">\x</span>c5<span style="color: #000099; font-weight: bold;">\x</span>ad<span style="color: #000099; font-weight: bold;">\x</span>cb&quot;</span>
		<span style="color: #7a0874; font-weight: bold;">let</span> s:enc_euc = <span style="color: #ff0000;">'euc-jisx0213'</span>
		<span style="color: #7a0874; font-weight: bold;">let</span> s:enc_jis = <span style="color: #ff0000;">'iso-2022-jp-3'</span>
	endif
	<span style="color: #ff0000;">&quot; fileencodingsを構築
	if &amp;encoding ==# 'utf-8'
		let s:fileencodings_default = &amp;fileencodings
		let &amp;fileencodings = s:enc_jis .','. s:enc_euc .',cp932'
		let &amp;fileencodings = &amp;fileencodings .','. s:fileencodings_default
		unlet s:fileencodings_default
	else
		let &amp;fileencodings = &amp;fileencodings .','. s:enc_jis
		set fileencodings+=utf-8,ucs-2le,ucs-2
		if &amp;encoding =~# '^<span style="color: #000099; font-weight: bold;">\(</span>euc-jp<span style="color: #000099; font-weight: bold;">\|</span>euc-jisx0213<span style="color: #000099; font-weight: bold;">\|</span>eucjp-ms<span style="color: #000099; font-weight: bold;">\)</span>$'
			set fileencodings+=cp932
			set fileencodings-=euc-jp
			set fileencodings-=euc-jisx0213
			set fileencodings-=eucjp-ms
			let &amp;encoding = s:enc_euc
			let &amp;fileencoding = s:enc_euc
		else
			let &amp;fileencodings = &amp;fileencodings .','. s:enc_euc
		endif
	endif
	&quot;</span> 定数を処分
	unlet s:enc_euc
	unlet s:enc_jis
endif
<span style="color: #ff0000;">&quot; 日本語を含まない場合は fileencoding に encoding を使うようにする
if has('autocmd')
	function! AU_ReCheck_FENC()
		if &amp;fileencoding =~# 'iso-2022-jp' &amp;&amp; search(&quot;</span><span style="color: #7a0874; font-weight: bold;">[</span>^\x01-\x7e<span style="color: #7a0874; font-weight: bold;">]</span><span style="color: #ff0000;">&quot;, 'n') == 0
			let &amp;fileencoding=&amp;encoding
		endif
	endfunction
	autocmd BufReadPost * call AU_ReCheck_FENC()
endif
&quot;</span> 改行コードの自動認識
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">fileformats=</span>unix,dos,mac
<span style="color: #ff0000;">&quot; □とか○の文字があってもカーソル位置がずれないようにする
if exists('&amp;ambiwidth')
	set ambiwidth=double
endif
&nbsp;
&quot;</span>-----------------------------------------------------------------------------
<span style="color: #ff0000;">&quot; 編集関連
&quot;</span>
<span style="color: #ff0000;">&quot;オートインデントする
set autoindent
&quot;</span>バイナリ編集<span style="color: #7a0874; font-weight: bold;">(</span>xxd<span style="color: #7a0874; font-weight: bold;">)</span>モード（vim -b での起動、もしくは *.bin で発動します）
<span style="color: #ff0000;">&quot;augroup BinaryXXD
&quot;</span>	autocmd!
<span style="color: #ff0000;">&quot;	autocmd BufReadPre  *.bin let &amp;binary =1
&quot;</span>	autocmd BufReadPost * <span style="color: #000000; font-weight: bold;">if</span> &amp;binary | silent %!xxd -g <span style="color: #000000;">1</span>
<span style="color: #ff0000;">&quot;	autocmd BufReadPost * set ft=xxd | endif
&quot;</span>	autocmd BufWritePre * <span style="color: #000000; font-weight: bold;">if</span> &amp;binary | %!xxd -r | endif
<span style="color: #ff0000;">&quot;	autocmd BufWritePost * if &amp;binary | silent %!xxd -g 1
&quot;</span>	autocmd BufWritePost * <span style="color: #000000; font-weight: bold;">set</span> nomod | endif
<span style="color: #ff0000;">&quot;augroup END
&nbsp;
&quot;</span>-----------------------------------------------------------------------------
<span style="color: #ff0000;">&quot; 検索関連
&quot;</span>
<span style="color: #ff0000;">&quot;検索文字列が小文字の場合は大文字小文字を区別なく検索する
set ignorecase
&quot;</span>検索文字列に大文字が含まれている場合は区別して検索する
<span style="color: #000000; font-weight: bold;">set</span> smartcase
<span style="color: #ff0000;">&quot;検索時に最後まで行ったら最初に戻る
set wrapscan
&quot;</span>検索文字列入力時に順次対象文字列にヒットさせない
<span style="color: #000000; font-weight: bold;">set</span> noincsearch
&nbsp;
<span style="color: #ff0000;">&quot;-----------------------------------------------------------------------------
&quot;</span> 装飾関連
<span style="color: #ff0000;">&quot;
&quot;</span>シンタックスハイライトを有効にする
<span style="color: #000000; font-weight: bold;">if</span> has<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #ff0000;">&quot;syntax&quot;</span><span style="color: #7a0874; font-weight: bold;">)</span>
	syntax on
endif
<span style="color: #ff0000;">&quot;行番号を表示しない
set number
&quot;</span>タブの左側にカーソル表示
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">listchars=</span>tab:&gt;-,eol:&lt;,trail:-,nbsp:%
<span style="color: #000000; font-weight: bold;">set</span> list
<span style="color: #ff0000;">&quot;タブ幅を設定する
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=0
&quot;</span>入力中のコマンドをステータスに表示する
<span style="color: #000000; font-weight: bold;">set</span> showcmd
<span style="color: #ff0000;">&quot;括弧入力時の対応する括弧を表示
set showmatch
&quot;</span>検索結果文字列のハイライトを有効にする
<span style="color: #000000; font-weight: bold;">set</span> hlsearch
<span style="color: #ff0000;">&quot;ステータスラインを常に表示
set laststatus=2
&quot;</span>ステータスラインに文字コードと改行文字を表示する
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">statusline=</span>%&lt;%f\ %m%r%h%w%<span style="color: #7a0874; font-weight: bold;">{</span><span style="color: #ff0000;">'['</span>.<span style="color: #7a0874; font-weight: bold;">(</span>&amp;fenc!=<span style="color: #ff0000;">''</span>?&amp;fenc:&amp;enc<span style="color: #7a0874; font-weight: bold;">)</span>.<span style="color: #ff0000;">']['</span>.&amp;ff.<span style="color: #ff0000;">']'</span><span style="color: #7a0874; font-weight: bold;">}</span>%=%l,%c%V%8P
&nbsp;
&nbsp;
<span style="color: #ff0000;">&quot;-----------------------------------------------------------------------------
&quot;</span> マップ定義
<span style="color: #ff0000;">&quot;
&quot;</span>バッファ移動用キーマップ
<span style="color: #ff0000;">&quot; F2: 前のバッファ
&quot;</span> F3: 次のバッファ
<span style="color: #ff0000;">&quot; F4: バッファ削除
map &lt;F2&gt; &lt;ESC&gt;:bp&lt;CR&gt;
map &lt;F3&gt; &lt;ESC&gt;:bn&lt;CR&gt;
map &lt;F4&gt; &lt;ESC&gt;:bw&lt;CR&gt;
&quot;</span>表示行単位で行移動する
nnoremap j gj
nnoremap k gk
<span style="color: #ff0000;">&quot;フレームサイズを怠惰に変更する
map &lt;kPlus&gt; &lt;C-W&gt;+
map &lt;kMinus&gt; &lt;C-W&gt;-
&nbsp;
&nbsp;
&quot;</span>-----------------------------------------------------------------------------
<span style="color: #ff0000;">&quot;追加
set tags+=~/.tags</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/mac-product-env-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macでの開発環境の設定　〜 zshの設定 〜</title>
		<link>http://blog.veryposi.info/server/server-setup/mac-product-env-zsh/</link>
		<comments>http://blog.veryposi.info/server/server-setup/mac-product-env-zsh/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 11:10:02 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[設定]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1393</guid>
		<description><![CDATA[Mac Book Proを買って仕事で使っているのですが、とりあえず環境を設定しないとと言うことで環境設定しました &#160; まずは、自分が使用しているシェルがzshなので.zshrcを設定しました。 一番参考にした [...]]]></description>
			<content:encoded><![CDATA[<p>Mac Book Proを買って仕事で使っているのですが、とりあえず環境を設定しないとと言うことで環境設定しました<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign03.gif" /></p>
<p>&nbsp;</p>
<p>まずは、自分が使用しているシェルがzshなので.zshrcを設定しました。</p>
<p>一番参考にしたサイトはこちら「<a href="http://journal.mycom.co.jp/column/zsh/index.html">漢のzsh</a>」です。</p>
<p>ほぼここのサイトの設定ファイルをパクったようなものです<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sweat01.gif" /></p>
<p>内容は以下になります、&nbsp;</p>
<p><span id="more-1393"></span></p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
</pre>
</td>
<td class="code">
<pre class="bash"><span style="color: #808080; font-style: italic;"># <span style="color: #c20cb9; font-weight: bold;">users</span> generic .zshrc <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">zsh</span><span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">)</span></span>
&nbsp;
<span style="color: #808080; font-style: italic;">## Environment variable configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># LANG</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LANG=</span>ja_JP.UTF<span style="color: #000000;">-8</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$<span style="color: #7a0874; font-weight: bold;">{</span>UID<span style="color: #7a0874; font-weight: bold;">}</span></span> <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #007800;">LANG=</span>C
    ;;
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## Default shell configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># <span style="color: #000000; font-weight: bold;">set</span> prompt</span>
<span style="color: #808080; font-style: italic;">#</span>
autoload colors
colors
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$<span style="color: #7a0874; font-weight: bold;">{</span>UID<span style="color: #7a0874; font-weight: bold;">}</span></span> <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #007800;">PROMPT=</span><span style="color: #ff0000;">&quot;%{${fg[cyan]}%}$(echo ${HOST%%.*} | tr '[a-z]' '[A-Z]') %{${fg[red]}%}%n@%m%#%{${reset_color}%} &quot;</span>
    <span style="color: #007800;">PROMPT2=</span><span style="color: #ff0000;">&quot;%B%{${fg[red]}%}%_#%{${reset_color}%}%b &quot;</span>
    <span style="color: #007800;">SPROMPT=</span><span style="color: #ff0000;">&quot;%B%{${fg[red]}%}%r is correct? [n,y,a,e]:%{${reset_color}%}%b &quot;</span>
    <span style="color: #007800;">RPROMPT=</span><span style="color: #ff0000;">&quot;%{${fg[green]}%}[%~:%T]%{${reset_color}%}&quot;</span>
    ;;
*<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #007800;">PROMPT=</span><span style="color: #ff0000;">&quot;%{${fg[red]}%}%n@%m%%%{${reset_color}%} &quot;</span>
    <span style="color: #007800;">PROMPT2=</span><span style="color: #ff0000;">&quot;%{${fg[red]}%}%_%%%{${reset_color}%} &quot;</span>
    <span style="color: #007800;">SPROMPT=</span><span style="color: #ff0000;">&quot;%{${fg[red]}%}%r is correct? [n,y,a,e]:%{${reset_color}%} &quot;</span>
    <span style="color: #007800;">RPROMPT=</span><span style="color: #ff0000;">&quot;%{${fg[green]}%}[%~:%T]%{${reset_color}%}&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">[</span> -n <span style="color: #ff0000;">&quot;${REMOTEHOST}${SSH_CONNECTION}&quot;</span> <span style="color: #7a0874; font-weight: bold;">]</span> &amp;&amp;
        <span style="color: #007800;">PROMPT=</span><span style="color: #ff0000;">&quot;%{${fg[cyan]}%}$(echo ${HOST%%.*} | tr '[a-z]' '[A-Z]') ${PROMPT}&quot;</span>
    ;;
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># auto change directory</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt auto_cd
&nbsp;
<span style="color: #808080; font-style: italic;"># auto directory <span style="color: #7a0874; font-weight: bold;">pushd</span> that you can get <span style="color: #7a0874; font-weight: bold;">dirs</span> list by <span style="color: #7a0874; font-weight: bold;">cd</span> -<span style="color: #7a0874; font-weight: bold;">[</span>tab<span style="color: #7a0874; font-weight: bold;">]</span></span>
<span style="color: #808080; font-style: italic;">#</span>
setopt auto_pushd
&nbsp;
<span style="color: #808080; font-style: italic;"># <span style="color: #7a0874; font-weight: bold;">command</span> correct edition before each completion attempt</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt correct
setopt correct_all
&nbsp;
<span style="color: #808080; font-style: italic;"># compacked <span style="color: #7a0874; font-weight: bold;">complete</span> list display</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt list_packed
&nbsp;
<span style="color: #808080; font-style: italic;"># no remove postfix slash of <span style="color: #7a0874; font-weight: bold;">command</span> line</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt noautoremoveslash
&nbsp;
<span style="color: #808080; font-style: italic;"># no beep sound when <span style="color: #7a0874; font-weight: bold;">complete</span> list displayed</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt nolistbeep
&nbsp;
<span style="color: #808080; font-style: italic;"># TABで順に保管候補を切り替える</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt auto_menu
&nbsp;
<span style="color: #808080; font-style: italic;"># 保管候補一覧でファイルの種別をマーク</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt list_types
&nbsp;
<span style="color: #808080; font-style: italic;"># = 以降でも補完できるようにする</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt magic_equal_subst
&nbsp;
<span style="color: #808080; font-style: italic;"># 補完時の日本語を正しく表示する</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt print_eight_bit
&nbsp;
<span style="color: #808080; font-style: italic;"># 重複するコマンド行は古い方を削除する</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt hist_ignore_all_dups
&nbsp;
<span style="color: #808080; font-style: italic;"># 履歴を追加</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt append_history
&nbsp;
<span style="color: #808080; font-style: italic;"># 履歴をインクリメンタルに追加</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt inc_append_history
&nbsp;
<span style="color: #808080; font-style: italic;"># 補完時に文字列末尾へカーソル移動</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt always_to_end
&nbsp;
<span style="color: #808080; font-style: italic;"># あいまい補完時に候補表示</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt auto_list
&nbsp;
<span style="color: #808080; font-style: italic;"># <span style="color: #7a0874; font-weight: bold;">history</span>コマンドをヒストリリストから取り除く</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt hist_no_store
&nbsp;
<span style="color: #808080; font-style: italic;"># コマンドの空白を削る</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt hist_reduce_blanks
&nbsp;
<span style="color: #808080; font-style: italic;"># 先頭が空白だった場合はログに記述しない</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt hist_ignore_space
&nbsp;
<span style="color: #808080; font-style: italic;"># ビープ音を出さない</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt no_beep
&nbsp;
<span style="color: #808080; font-style: italic;"># ヒストリを呼び出してから編集可能な状態にする</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt hist_verify
&nbsp;
<span style="color: #808080; font-style: italic;"># 保管候補のカーソル選択を有効にする</span>
<span style="color: #808080; font-style: italic;">#</span>
zstyle <span style="color: #ff0000;">':completion:*:default'</span> menu <span style="color: #007800;">select=</span><span style="color: #000000;">1</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># 補完の時に大文字小文字を区別しない<span style="color: #7a0874; font-weight: bold;">(</span>但し、大文字を打った場合は小文字に変換しない<span style="color: #7a0874; font-weight: bold;">)</span></span>
<span style="color: #808080; font-style: italic;">#</span>
zstyle <span style="color: #ff0000;">':completion:*'</span> matcher-list <span style="color: #ff0000;">'m:{a-z}={A-Z}'</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## Keybind configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># emacs like keybind <span style="color: #7a0874; font-weight: bold;">(</span>e.x. Ctrl-a gets to line <span style="color: #c20cb9; font-weight: bold;">head</span> and Ctrl-e gets</span>
<span style="color: #808080; font-style: italic;">#   to end<span style="color: #7a0874; font-weight: bold;">)</span> and something additions</span>
<span style="color: #808080; font-style: italic;">#</span>
bindkey -v
bindkey <span style="color: #ff0000;">&quot;^[[1~&quot;</span> beginning-of-line <span style="color: #808080; font-style: italic;"># Home gets to line head</span>
bindkey <span style="color: #ff0000;">&quot;^[[4~&quot;</span> end-of-line <span style="color: #808080; font-style: italic;"># End gets to line end</span>
bindkey <span style="color: #ff0000;">&quot;^[[3~&quot;</span> delete-char <span style="color: #808080; font-style: italic;"># Del</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># historical backward/forward search with linehead string binded to ^P/^N</span>
<span style="color: #808080; font-style: italic;">#</span>
autoload history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey <span style="color: #ff0000;">&quot;^p&quot;</span> history-beginning-search-backward-end
bindkey <span style="color: #ff0000;">&quot;^n&quot;</span> history-beginning-search-forward-end
bindkey <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>ep&quot;</span> history-beginning-search-backward-end
bindkey <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>en&quot;</span> history-beginning-search-forward-end
&nbsp;
<span style="color: #808080; font-style: italic;"># reverse menu completion binded to Shift-Tab</span>
<span style="color: #808080; font-style: italic;">#</span>
bindkey <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\e</span>[Z&quot;</span> reverse-menu-<span style="color: #7a0874; font-weight: bold;">complete</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## Command <span style="color: #7a0874; font-weight: bold;">history</span> configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #007800;">HISTFILE=</span><span style="color: #007800;">$<span style="color: #7a0874; font-weight: bold;">{</span>HOME<span style="color: #7a0874; font-weight: bold;">}</span></span>/.zsh_history
<span style="color: #007800;">HISTSIZE=</span><span style="color: #000000;">100000000</span>
<span style="color: #007800;">SAVEHIST=</span><span style="color: #000000;">100000000</span>
setopt hist_ignore_dups     <span style="color: #808080; font-style: italic;"># ignore duplication <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #7a0874; font-weight: bold;">history</span> list</span>
setopt share_history        <span style="color: #808080; font-style: italic;"># share <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #7a0874; font-weight: bold;">history</span> data</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## Completion configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #007800;">fpath=</span><span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #007800;">$<span style="color: #7a0874; font-weight: bold;">{</span>HOME<span style="color: #7a0874; font-weight: bold;">}</span></span>/.<span style="color: #c20cb9; font-weight: bold;">zsh</span>/functions/Completion <span style="color: #007800;">$<span style="color: #7a0874; font-weight: bold;">{</span>fpath<span style="color: #7a0874; font-weight: bold;">}</span></span><span style="color: #7a0874; font-weight: bold;">)</span>
autoload -U compinit
compinit
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## <span style="color: #c20cb9; font-weight: bold;">zsh</span> editor</span>
<span style="color: #808080; font-style: italic;">#</span>
autoload zed
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## Prediction configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;">#autoload predict-on</span>
<span style="color: #808080; font-style: italic;">#predict-on</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## Alias configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># expand aliases before completing</span>
<span style="color: #808080; font-style: italic;">#</span>
setopt complete_aliases     <span style="color: #808080; font-style: italic;"># aliased <span style="color: #c20cb9; font-weight: bold;">ls</span> needs <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #c20cb9; font-weight: bold;">file</span>/<span style="color: #c20cb9; font-weight: bold;">dir</span> completions work</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">where=</span><span style="color: #ff0000;">&quot;command -v&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">j=</span><span style="color: #ff0000;">&quot;jobs -l&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;${OSTYPE}&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
freebsd*|darwin*<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ls=</span><span style="color: #ff0000;">&quot;ls -G -w&quot;</span>
    ;;
linux*<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ls=</span><span style="color: #ff0000;">&quot;ls --color&quot;</span>
    ;;
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">la=</span><span style="color: #ff0000;">&quot;ls -a&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">lf=</span><span style="color: #ff0000;">&quot;ls -F&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ll=</span><span style="color: #ff0000;">&quot;ls -l&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">du=</span><span style="color: #ff0000;">&quot;du -h&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">df=</span><span style="color: #ff0000;">&quot;df -h&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">su=</span><span style="color: #ff0000;">&quot;su -l&quot;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## terminal configuration</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;${TERM}&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
screen<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #007800;">TERM=</span>xterm
    ;;
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;${TERM}&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
xterm|xterm-color<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LSCOLORS=</span>exfxcxdxbxegedabagacad
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LS_COLORS=</span><span style="color: #ff0000;">'di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'</span>
    zstyle <span style="color: #ff0000;">':completion:*'</span> list-colors <span style="color: #ff0000;">'di=34'</span> <span style="color: #ff0000;">'ln=35'</span> <span style="color: #ff0000;">'so=32'</span> <span style="color: #ff0000;">'ex=31'</span> <span style="color: #ff0000;">'bd=46;34'</span> <span style="color: #ff0000;">'cd=43;34'</span>
    ;;
kterm-color<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #c20cb9; font-weight: bold;">stty</span> erase <span style="color: #ff0000;">'^H'</span>
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LSCOLORS=</span>exfxcxdxbxegedabagacad
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LS_COLORS=</span><span style="color: #ff0000;">'di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'</span>
    zstyle <span style="color: #ff0000;">':completion:*'</span> list-colors <span style="color: #ff0000;">'di=34'</span> <span style="color: #ff0000;">'ln=35'</span> <span style="color: #ff0000;">'so=32'</span> <span style="color: #ff0000;">'ex=31'</span> <span style="color: #ff0000;">'bd=46;34'</span> <span style="color: #ff0000;">'cd=43;34'</span>
    ;;
kterm<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #c20cb9; font-weight: bold;">stty</span> erase <span style="color: #ff0000;">'^H'</span>
    ;;
cons25<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #7a0874; font-weight: bold;">unset</span> LANG
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LSCOLORS=</span>ExFxCxdxBxegedabagacad
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LS_COLORS=</span><span style="color: #ff0000;">'di=01;34:ln=01;35:so=01;32:ex=01;31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'</span>
    zstyle <span style="color: #ff0000;">':completion:*'</span> list-colors <span style="color: #ff0000;">'di=;34;1'</span> <span style="color: #ff0000;">'ln=;35;1'</span> <span style="color: #ff0000;">'so=;32;1'</span> <span style="color: #ff0000;">'ex=31;1'</span> <span style="color: #ff0000;">'bd=46;34'</span> <span style="color: #ff0000;">'cd=43;34'</span>
    ;;
jfbterm-color<span style="color: #7a0874; font-weight: bold;">)</span>
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LSCOLORS=</span>gxFxCxdxBxegedabagacad
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LS_COLORS=</span><span style="color: #ff0000;">'di=01;36:ln=01;35:so=01;32:ex=01;31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'</span>
    zstyle <span style="color: #ff0000;">':completion:*'</span> list-colors <span style="color: #ff0000;">'di=;36;1'</span> <span style="color: #ff0000;">'ln=;35;1'</span> <span style="color: #ff0000;">'so=;32;1'</span> <span style="color: #ff0000;">'ex=31;1'</span> <span style="color: #ff0000;">'bd=46;34'</span> <span style="color: #ff0000;">'cd=43;34'</span>
    ;;
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># <span style="color: #000000; font-weight: bold;">set</span> terminal title including current directory</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;${TERM}&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
xterm|xterm-color|kterm|kterm-color<span style="color: #7a0874; font-weight: bold;">)</span>
    precmd<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">{</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> -ne <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>33]0;${USER}@${HOST%%.*}:${PWD}<span style="color: #000099; font-weight: bold;">\0</span>07&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">}</span>
    ;;
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">## load user .zshrc configuration file</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #7a0874; font-weight: bold;">[</span> -f <span style="color: #007800;">$<span style="color: #7a0874; font-weight: bold;">{</span>HOME<span style="color: #7a0874; font-weight: bold;">}</span></span>/.zshrc.mine <span style="color: #7a0874; font-weight: bold;">]</span> &amp;&amp; <span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #007800;">$<span style="color: #7a0874; font-weight: bold;">{</span>HOME<span style="color: #7a0874; font-weight: bold;">}</span></span>/.zshrc.mine
&nbsp;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/mac-product-env-zsh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macでのファイル共有の設定</title>
		<link>http://blog.veryposi.info/programing/mac/mac2windows/</link>
		<comments>http://blog.veryposi.info/programing/mac/mac2windows/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 08:43:18 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1391</guid>
		<description><![CDATA[&#160;MacでとりあえずWindowsとのファイル共有をしました 以下のアップルサイトが参考になったので覚書程度にURLを書いておきます。 &#160; http://support.apple.com/kb/HT [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;MacでとりあえずWindowsとのファイル共有をしました</p>
<p>以下のアップルサイトが参考になったので覚書程度にURLを書いておきます。</p>
<p>&nbsp;</p>
<p><a href="http://support.apple.com/kb/HT1549?viewlocale=ja_JP">http://support.apple.com/kb/HT1549?viewlocale=ja_JP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/mac/mac2windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macでのパッケージシステム</title>
		<link>http://blog.veryposi.info/programing/mac/mac-package-syst/</link>
		<comments>http://blog.veryposi.info/programing/mac/mac-package-syst/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 11:00:26 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1389</guid>
		<description><![CDATA[&#160;Macで簡単なパッケージ管理のできるシステムがないかなと思って探していると MacPortsとFinkっていう２つのシステムを発見 とりあえず両方ともインストールしてみることにした。 &#160; どっちがい [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Macで簡単なパッケージ管理のできるシステムがないかなと思って探していると</p>
<p>MacPortsとFinkっていう２つのシステムを発見</p>
<p>とりあえず両方ともインストールしてみることにした。</p>
<p>&nbsp;</p>
<p>どっちがいいのかわからないです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/mac/mac-package-syst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macにインストールするソフト</title>
		<link>http://blog.veryposi.info/programing/mac/mac-install/</link>
		<comments>http://blog.veryposi.info/programing/mac/mac-install/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 03:48:27 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1387</guid>
		<description><![CDATA[&#160;Macにインストールするソフトたち テキストエディタ：vim メール：thnderbird ブラウザ：chrome メッセンジャー：adium 開発用：eclipse3.5,Xcodeなどなど 覚え書きでした]]></description>
			<content:encoded><![CDATA[<p>&nbsp;Macにインストールするソフトたち</p>
<p>テキストエディタ：vim</p>
<p>メール：thnderbird</p>
<p>ブラウザ：chrome</p>
<p>メッセンジャー：adium</p>
<p>開発用：eclipse3.5,Xcodeなどなど</p>
<p>覚え書きでした</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/mac/mac-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macの製品保証書がない・・・</title>
		<link>http://blog.veryposi.info/programing/mac/ma/</link>
		<comments>http://blog.veryposi.info/programing/mac/ma/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 06:36:18 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1383</guid>
		<description><![CDATA[&#160;MacBookProを購入しました。 外の箱には、購入店舗の購入日を示すシールがついていました。 &#160; しかし肝心な製品保証書が見当たらない、 とりあえず購入した店舗にメールにて連絡・・・1日後にメー [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;MacBookProを購入しました。</p>
<p>外の箱には、購入店舗の購入日を示すシールがついていました。</p>
<p>&nbsp;</p>
<p>しかし肝心な製品保証書が見当たらない、</p>
<p>とりあえず購入した店舗にメールにて連絡・・・1日後にメールが帰ってくる</p>
<p>&nbsp;</p>
<p>で、店舗に電話連絡して確認、</p>
<p>どうやらAppleの白い化粧箱の中にあるとしたら入ってるらしい・・・</p>
<p>&nbsp;</p>
<p>Appleに電話してみる。</p>
<p>製品保証書が無いのはおかしい、ので保証書の再発行について知ってる人に聞いてきますとの事で待つこと1分・・・。</p>
<p>&nbsp;</p>
<p>なんと、今のMacの製品には製品保証書が無いことが判明<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/sign03.gif" /></p>
<p>&nbsp;</p>
<p>びつくりしました。</p>
<p>そうなんか、じゃあ仕方ない。でも、よかった<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy02.gif" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/programing/mac/ma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: blog.veryposi.info @ 2026-04-23 13:33:13 -->