[from now] 2014/08/19 21:09:57

diff --git a/.zshrc b/.zshrc
index e71cef1..2feffd9 100644
--- a/.zshrc
+++ b/.zshrc
@@ -35,7 +35,7 @@ Linux)
 esac

 # PROMPT
-PROMPT='%(?,%F{green},%F{red})%D{%I:%M:%S} [%n@%m %1~]%#%f '
+PROMPT='%(?,%F{green},%F{red})%D{%I:%M:%S} %#%f '

 # RPROMT
 autoload -Uz vcs_info
diff --git a/Brewfile b/Brewfile
index 7d57e90..ae4483e 100644
--- a/Brewfile
+++ b/Brewfile
@@ -17,6 +17,7 @@ install openssl
 install plenv perl-build
 install rbenv ruby-build
 install readline
+install redis
 install tmux
 install tree
 install vim
[from now] 2014/08/22 01:56:33

diff --git a/.tmux.conf b/.tmux.conf
index d88a72e..8d88bd1 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -82,7 +82,7 @@ bind C-d detach-client
 bind C-n next-window
 bind C-o select-pane -t :.+
 bind C-p previous-window
-bind C-r source $HOME/.tmux.conf\; display "Reload!"
+bind C-r source $HOME/.tmux.conf\; display ".tmux.conf reloaded!"
 bind C-t copy-mode
 bind -r C-h resize-pane -L 1
 bind -r C-j resize-pane -D 1
diff --git a/.zshrc b/.zshrc
index 2feffd9..9683f7d 100644
--- a/.zshrc
+++ b/.zshrc
@@ -13,6 +13,11 @@ path=(
   /bin
 )

+fpath=(
+  /usr/local/share/zsh/functions(N-/)
+  /usr/local/share/zsh/site-functions(N-/)
+)
+
 alias vi='vim'
 alias grep='grep --color=auto'
 alias egrep='egrep --color=auto'
@@ -24,6 +29,7 @@ alias ll='ls -l'
 alias la='ls -lA'
 alias rake='noglob rake'
 alias .='source'
+alias gist='gist -poc'

 case $(uname) in
 Linux)
@@ -55,7 +61,7 @@ setopt TRANSIENT_RPROMPT
 setopt PROMPT_SUBST

 autoload -U compinit
-compinit
+compinit -u

 zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
 zstyle ':completion:*:default' menu select=1
diff --git a/Brewfile b/Brewfile
deleted file mode 100644
index ae4483e..0000000
--- a/Brewfile
+++ /dev/null
@@ -1,51 +0,0 @@
-update
-upgrade
-
-install android-sdk android-platform-tools
-install bash
-install gist
-install git
-install git-flow
-install git-now
-install heroku-toolbelt
-install hub
-install jpeg
-install mysql
-install nginx
-install node
-install openssl
-install plenv perl-build
-install rbenv ruby-build
-install readline
-install redis
-install tmux
-install tree
-install vim
-install wget
-install watch
-install zsh
-
-tap phinze/homebrew-cask
-install brew-cask
-
-cask install alfred
-cask install android-file-transfer
-cask install appcleaner
-cask install atom
-cask install bittorrent-sync
-cask install brytonbridge
-cask install colors
-cask install firefox
-cask install google-chrome
-cask install handbrake
-cask install java
-cask install musicmanager
-cask install onepassword
-cask install scansnap-manager
-cask install skype
-
-tap peco/peco
-install peco
-
-cleanup
-cask cleanup
diff --git a/Rakefile b/Rakefile
index 97f8ed9..dca99e0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -2,6 +2,11 @@ PWD = "#{ENV['HOME']}/.dotfiles"
 NEOBUNDLE = "#{PWD}/.vim/bundle/neobundle.vim"

 task :default do
+  system "rake -T"
+end
+
+desc "init"
+task :init do
   sh "git clone https://github.com/Shougo/neobundle.vim.git #{NEOBUNDLE}" unless Dir.exists? NEOBUNDLE
   Dir.foreach(PWD).reject{ |n| n =~ %r{(^[^.]|\.(\.?|git/?|gitignore)$)} }.each do |f|
     if f =~ %r{git}
@@ -11,3 +16,76 @@ task :default do
     end
   end
 end
+
+desc "brew bundle"
+task :"brew:bundle" => [
+  :"brew:update",
+  :"brew:tap",
+  :"brew:install",
+  :"brew:cleanup"
+]
+
+namespace "brew" do
+  desc "brew update"
+  task :update do
+    sh "brew update && brew upgrade"
+  end
+
+  desc "brew cleanup"
+  task :cleanup do
+    sh "brew cleanup && brew cask cleanup"
+  end
+
+  desc "brew tap"
+  task :tap do
+    %w(
+      peco/peco
+    ).each { |repo| sh "brew tap #{repo}" }
+  end
+
+  desc "brew install"
+  task :install do
+    %w(
+      bash
+      caskroom/cask/brew-cask
+      gist
+      git git-now
+      heroku-toolbelt
+      hub
+      jpeg
+      mysql
+      nginx
+      node
+      openssl
+      peco
+      plenv perl-build
+      rbenv ruby-build
+      readline
+      redis
+      tmux
+      tree
+      vim
+      watch
+      wget
+      zsh
+    ).each { |pkg| system "brew install #{pkg}" }
+
+    %w(
+      alfred
+      android-file-transfer
+      appcleaner
+      atom
+      bittorrent-sync
+      brytonbridge
+      colors
+      firefox
+      google-chrome
+      handbrake
+      musicmanager
+      onepassword
+      scansnap-manager
+      skype
+    ).each { |pkg| system "brew cask install #{pkg}" }
+    sh "brew cask alfred link"
+  end
+end