WebAborn ver19で変更した以下2点について説明するぞ。
- AタグのURLを置き換え対象に追加(タイプ1のみ)。
- 単語単位置き換えのとき最適化を抑制。
前の記事: C#とUnity4で書籍『Unity入門』(1) http://itouhiro.hatenablog.com/entry/20131002/unity
この章で使うパーティクルシステムは、Unity3とUnity4(正確にはUnity3.4までと3.5以降)で異なるんだ。
Unity入門 ~高機能ゲームエンジンによるマルチプラットフォーム開発~
の本でUnityを学ぶ。ただしこの本は
という動作環境の説明になっていて、現在の主流の
の環境とズレがある。
そこで、その差を埋めながら学ぶのをこのブログに記録しておくぞ。
PortableGitをインストール
PortableGit-1.8.3-preview20130601.7z
設定の参考
http://blog.segu.jp/2012/05/git-portable.html
git-bash.batに以下を追加
set HOME=C:\Users\%USERNAME%\Documents cd %HOME%
http://nazochu.blogspot.jp/2011/09/blog-post.html
http://news.mynavi.jp/articles/2011/07/05/commandline/
を参考に変える。
ブランチ名をプロンプトに表示
http://d.hatena.ne.jp/hirose31/20090519/1242664458
を参考にした。PortableGitインストール先のc:/home/bin/PortableGit/etc/git-completion.bash をそのまま読み込む。
GIT_COMPL='../../../home/bin/PortableGit/etc/git-completion.bash' if [ -r "$GIT_COMPL" ]; then export PS1="\$(__git_ps1 \"\e[36m%s\e[m \")\e[33m\w\$\e[m " else export PS1="\e[33m\w\$\e[m " fi
プロンプトの色変更について
http://www.m-bsys.com/linux/echo-color-1
を参考にした。
git logのフォーマットを変更
http://stackoverflow.com/questions/7853332/git-log-date-formats
を参考に。
# for Git-Bash GIT_COMPL='../../../home/bin/PortableGit/etc/git-completion.bash' if [ -r "$GIT_COMPL" ]; then export PS1="\$(__git_ps1 \"\e[36m%s\e[m \")\e[33m\w\$\e[m " else export PS1="\e[33m\w\$\e[m " fi alias ls="ls -Fa --show-control-chars" alias ll="ls -l" alias lr="ll -tr" alias lv="less" alias gs="git status --porcelain -b" alias gl="git log -n30 --pretty=format:'%Cgreen%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%Creset %s' --date=iso" alias gw="git whatchanged"
http://nuclearsquid.com/writings/git-tricks-tips-workflows/
を参考に、gitの代わりに g と入力すればよいようにした。
$ g co te[TAB]
で
$ git checkout te[TAB]
と同じように、testing というブランチ名が補完される。
# for Git-Bash GIT_COMPL='../../../home/bin/PortableGit/etc/git-completion.bash' if [ -r "$GIT_COMPL" ]; then export PS1="\$(__git_ps1 \"\e[36m%s\e[m \")\e[33m\w\$\e[m " else export PS1="\e[33m\w\$\e[m " fi alias ls="ls -Fa --show-control-chars" alias ll="ls -l" alias lr="ll -tr" alias lv="less" alias gs="git status --porcelain -b" # n24,n25.. needs hitting-key more alias gl="git log -n22 --pretty=format:'%Cgreen%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%Creset %s' --date=iso" alias gw="git whatchanged -n22" alias gb="git branch" alias g='git' complete -o default -o nospace -F _git g
ちなみに alias gc='git checkout' だけだとブランチ名補完がきかない。