[from now] 2014/08/10 03:01:05

diff --git a/.bash_profile b/.bash_profile
index 0e648c3..a80f0e5 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -34,14 +34,19 @@ esac
 eval "$(plenv init -)"
 eval "$(rbenv init -)"

-PS1='\033k\033\\[\u@\h \W]\$ '
-
 # screen
 SCREEN_SESSION="aloha"
-if screen -ls | grep $SCREEN_SESSION > /dev/null; then
-  screen -rx $SCREEN_SESSION > /dev/null
-else
-  if [ -z "$STY" ]; then
-    screen -S $SCREEN_SESSION > /dev/null
-  fi
+if [ "$(screen -ls | grep $SCREEN_SESSION | awk '{print $2}')" == "(Detached)" ]; then
+  screen -r $SCREEN_SESSION
+elif [ -z "$STY" ]; then
+  screen -S $SCREEN_SESSION
 fi
+
+function prompt {
+    if [[ $? -gt 0 ]];then
+        PS1='\033k\033\\\e[00;35m\][\u@\h \W]\$ \[\e[0m\]'
+    else
+        PS1='\033k\033\\\e[00;36m\][\u@\h \W]\$ \[\e[0m\]'
+    fi
+}
+PROMPT_COMMAND=prompt
diff --git a/.screenrc b/.screenrc
index 5884e0f..2ece244 100644
--- a/.screenrc
+++ b/.screenrc
@@ -9,7 +9,7 @@ defkanji utf-8
 defencoding utf-8
 encoding utf-8 utf-8
 hardstatus off
-caption always "%{= kw}%0C:%s %{= kd}%-w%{= ck}%n %t%{-}%+w"
+caption always "%{= kw} %0C:%s %{= kd}%-w%{= ck}%n %t%{-}%+w"
 shelltitle "$ |bash"

 bind ! only
diff --git a/.tmux.conf b/.tmux.conf
index 8df2d16..a2a9e70 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -3,7 +3,7 @@ set -g bell-action none
 set -g history-limit 21000
 set -g default-terminal screen-256color
 set -g status-interval 1
-set -g status-left '#[bg=black,fg=white]%I:%M:%S'
+set -g status-left '#[bg=black,fg=white] %I:%M:%S'
 set -g status-right ''
 set -g status-fg white
 set -g status-bg black
@@ -20,8 +20,15 @@ unbind '$'
 unbind %
 unbind &
 unbind "'"
+unbind \;
+unbind =
+unbind '~'
 unbind (
 unbind )
+unbind {
+unbind }
+unbind [
+unbind ]
 unbind .
 unbind 0
 unbind 1
@@ -33,38 +40,32 @@ unbind 6
 unbind 7
 unbind 8
 unbind 9
-unbind \;
-unbind =
-unbind x
-unbind '~'
-unbind C-Down
 unbind C-Left
-unbind C-Right
+unbind C-Down
 unbind C-Up
+unbind C-Right
 unbind C-b
 unbind C-z
-unbind D
-unbind Down
-unbind L
-unbind Left
 unbind M-1
 unbind M-2
 unbind M-3
 unbind M-4
 unbind M-5
-unbind M-Down
 unbind M-Left
-unbind M-Right
+unbind M-Down
 unbind M-Up
+unbind M-Right
 unbind M-n
 unbind M-o
 unbind M-p
-unbind PPage
+unbind Left
+unbind Down
+unbind Up
 unbind Right
 unbind Space
-unbind Up
-unbind [
-unbind ]
+unbind PPage
+unbind D
+unbind L
 unbind f
 unbind i
 unbind n
@@ -73,9 +74,8 @@ unbind q
 unbind r
 unbind s
 unbind t
+unbind x
 unbind z
-unbind {
-unbind }

 bind C-c new-window -c "#{pane_current_path}"
 bind C-d detach-client
@@ -89,5 +89,6 @@ bind -r C-j resize-pane -D 1
 bind -r C-k resize-pane -U 1
 bind -r C-l resize-pane -R 1
 bind p paste-buffer
+bind k confirm-before -p "kill-pane #P? (y/n)" kill-pane
 bind - split-window -vc "#{pane_current_path}"
 bind | split-window -hc "#{pane_current_path}"
diff --git a/.zshrc b/.zshrc
index f78e5b2..16c46f1 100644
--- a/.zshrc
+++ b/.zshrc
@@ -10,6 +10,7 @@ alias mv='mv -i'
 alias ll='ls -l'
 alias la='ls -lA'
 alias rake='noglob rake'
+alias .='source'

 path=(
   $HOME/.plenv/bin(N-/)
[from now] 2014/08/10 03:08:53

diff --git a/.tmux.conf b/.tmux.conf
index a2a9e70..c90709c 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -7,10 +7,10 @@ set -g status-left '#[bg=black,fg=white] %I:%M:%S'
 set -g status-right ''
 set -g status-fg white
 set -g status-bg black
-set -g message-fg black
-set -g message-bg white
+set -g message-fg white
+set -g message-bg red
 setw -g window-status-current-fg black
-setw -g window-status-current-bg cyan
+setw -g window-status-current-bg green
 setw -g mode-keys vi
 setw -g utf8 on
[from now] 2014/08/11 07:16:37

diff --git a/.bash_profile b/.bash_profile
index a80f0e5..b2512fe 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -43,10 +43,16 @@ elif [ -z "$STY" ]; then
 fi

 function prompt {
-    if [[ $? -gt 0 ]];then
-        PS1='\033k\033\\\e[00;35m\][\u@\h \W]\$ \[\e[0m\]'
-    else
-        PS1='\033k\033\\\e[00;36m\][\u@\h \W]\$ \[\e[0m\]'
-    fi
+  if [[ $? -gt 0 ]]; then
+    PS1='\033k\033\\\e[00;35m\][\u@\h \W]\$ \[\e[0m\]'
+  else
+    PS1='\033k\033\\\e[00;36m\][\u@\h \W]\$ \[\e[0m\]'
+  fi
 }
 PROMPT_COMMAND=prompt
+
+IGNOREEOF=10
+
+function cd {
+  builtin cd "$@" && ls
+}