Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: afukuhara/dot.files
base: 1df439b0af
...
head fork: afukuhara/dot.files
compare: 5550dbd736
Checking mergeability… Don't worry, you can still create the pull request.
  • 5 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
View
13 .screenrc
@@ -1,3 +1,4 @@
+startup_message off
escape ^Tt
vbell off
hardstatus alwayslastline " %`%-w%{=b bw}%n %t%{-}%+w"
@@ -8,9 +9,17 @@ bind ^k kill
markkeys "h=^B:l=^F:$=^E"
bind x command -c REGION
-bind -c REGION 2 split
-bind -c REGION 1 only
bind -c REGION 0 remove
+bind -c REGION 1 only
+bind -c REGION 2 split
+bind -c REGION 3 split -v
bind ^o focus
bind -c REGION ^ resize
+bind -c REGION + eval 'resize +1' 'command -c REGION'
+bind -c REGION - eval 'resize -1' 'command -c REGION'
+
+termcapinfo xterm* ti@:te@
+
+bind -c REGION s eval "split" "focus" "select 0" 'command -c cwindow' 'echo "Window mode: "'
+bind -c REGION v eval "split -v" "focus" "select 0" 'command -c cwindow' 'echo "Window mode: "'
View
BIN  .vim/bundle/neocomplcache.tar.bz
Binary file not shown
View
9 .vim/ftplugin/perl/errormaker.vim
@@ -0,0 +1,9 @@
+" Perl syntax check configurations for errormaker.vim
+
+if !exists("g:did_perl_errormaker")
+ let g:did_perl_errormaker = 1
+ compiler perl
+ autocmd BufWritePost *.pl,*.pm,*.t silent make
+" call perl5lib#set_perl5lib()
+endif
+
View
8 .vim/ftplugin/php/errormaker.vim
@@ -0,0 +1,8 @@
+" PHP syntax check configurations for errormaker.vim
+
+if !exists("g:did_php_errormaker")
+ let g:did_php_errormaker = 1
+ compiler php
+ autocmd BufWritePost *.php silent make %
+endif
+
View
11 .vim/ftplugin/ruby/errormaker.vim
@@ -0,0 +1,11 @@
+" Ruby syntax check configurations for errormaker.vim
+
+
+if !exists("g:did_ruby_errormaker")
+ let g:did_ruby_errormaker = 1
+ compiler ruby
+ setlocal makeprg=ruby\ -c\ $*
+ setlocal errorformat=%f:%l:%m
+ autocmd BufWritePost *.rb silent make %
+endif
+
View
142 .zsh/plugin/incr-0.2.zsh
@@ -0,0 +1,142 @@
+# Incremental completion for zsh
+# by y.fujii <y-fujii at mimosa-pudica.net>, public domain
+
+
+autoload -U compinit
+zle -N self-insert self-insert-incr
+zle -N vi-cmd-mode-incr
+zle -N vi-backward-delete-char-incr
+zle -N backward-delete-char-incr
+zle -N expand-or-complete-prefix-incr
+compinit
+
+bindkey -M viins '^[' vi-cmd-mode-incr
+bindkey -M viins '^h' vi-backward-delete-char-incr
+bindkey -M viins '^?' vi-backward-delete-char-incr
+bindkey -M viins '^i' expand-or-complete-prefix-incr
+bindkey -M emacs '^h' backward-delete-char-incr
+bindkey -M emacs '^?' backward-delete-char-incr
+bindkey -M emacs '^i' expand-or-complete-prefix-incr
+
+unsetopt automenu
+compdef -d scp
+compdef -d tar
+compdef -d make
+compdef -d java
+compdef -d svn
+compdef -d cvs
+
+# TODO:
+# cp dir/
+
+now_predict=0
+
+function limit-completion
+{
+ if ((compstate[nmatches] <= 1)); then
+ zle -M ""
+ elif ((compstate[list_lines] > 6)); then
+ compstate[list]=""
+ zle -M "too many matches."
+ fi
+}
+
+function correct-prediction
+{
+ if ((now_predict == 1)); then
+ if [[ "$BUFFER" != "$buffer_prd" ]] || ((CURSOR != cursor_org)); then
+ now_predict=0
+ fi
+ fi
+}
+
+function remove-prediction
+{
+ if ((now_predict == 1)); then
+ BUFFER="$buffer_org"
+ now_predict=0
+ fi
+}
+
+function show-prediction
+{
+ # assert(now_predict == 0)
+ if
+ ((PENDING == 0)) &&
+ ((CURSOR > 1)) &&
+ [[ "$PREBUFFER" == "" ]] &&
+ [[ "$BUFFER[CURSOR]" != " " ]]
+ then
+ cursor_org="$CURSOR"
+ buffer_org="$BUFFER"
+ comppostfuncs=(limit-completion)
+ zle complete-word
+ cursor_prd="$CURSOR"
+ buffer_prd="$BUFFER"
+ if [[ "$buffer_org[1,cursor_org]" == "$buffer_prd[1,cursor_org]" ]]; then
+ CURSOR="$cursor_org"
+ if [[ "$buffer_org" != "$buffer_prd" ]] || ((cursor_org != cursor_prd)); then
+ now_predict=1
+ fi
+ else
+ BUFFER="$buffer_org"
+ CURSOR="$cursor_org"
+ fi
+ echo -n "\e[32m"
+ else
+ zle -M ""
+ fi
+}
+
+function preexec
+{
+ echo -n "\e[39m"
+}
+
+function vi-cmd-mode-incr
+{
+ correct-prediction
+ remove-prediction
+ zle vi-cmd-mode
+}
+
+function self-insert-incr
+{
+ correct-prediction
+ remove-prediction
+ if zle .self-insert; then
+ show-prediction
+ fi
+}
+
+function vi-backward-delete-char-incr
+{
+ correct-prediction
+ remove-prediction
+ if zle vi-backward-delete-char; then
+ show-prediction
+ fi
+}
+
+function backward-delete-char-incr
+{
+ correct-prediction
+ remove-prediction
+ if zle backward-delete-char; then
+ show-prediction
+ fi
+}
+
+function expand-or-complete-prefix-incr
+{
+ correct-prediction
+ if ((now_predict == 1)); then
+ CURSOR="$cursor_prd"
+ now_predict=0
+ comppostfuncs=(limit-completion)
+ zle list-choices
+ else
+ remove-prediction
+ zle expand-or-complete-prefix
+ fi
+}
View
26 .zshrc
@@ -45,6 +45,7 @@ bindkey " " my-expand-abbrev
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
+setopt hist_reduce_blanks #
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
@@ -98,8 +99,8 @@ preexec () {
[ ${STY} ] && echo -ne "\ek${1%% *}\e\\"
}
-[ ${STY} ] || tscreen -rx || tscreen -D -RR
-# [ ${STY} ] || screen -rx || screen -D -RR
+# [ ${STY} ] || tscreen -rx || tscreen -D -RR
+[ ${STY} ] || screen -rx || screen -D -RR
## end
setopt IGNORE_EOF
@@ -117,9 +118,9 @@ _update_rprompt () {
else
RPROMPT=""
fi
-}
-
-precmd () {
+}
+
+precmd () {
_set_env_git_current_branch
_update_rprompt
}
@@ -132,8 +133,8 @@ chpwd () {
# Show git branch [END]
-if [[ -s /Users/arinobu/.rvm/scripts/rvm ]]
-then
+if [[ -s /Users/arinobu/.rvm/scripts/rvm ]]
+then
source /Users/arinobu/.rvm/scripts/rvm
fi
@@ -162,8 +163,8 @@ e_BLUE=`echo -e "\033[1;36m"`
function make() {
LANG=C command make "$@" 2>&1 | sed -e "s@[Ee]rror:.*@$e_RED&$e_normal@g" -e "s@cannot\sfind.*@$e_RED&$e_normal@g" -e "s@[Ww]arning:.*@$e_BLUE&$e_normal@g"
- }
- function cwaf() {
+}
+function cwaf() {
LANG=C command ./waf "$@" 2>&1 | sed -e "s@[Ee]rror:.*@$e_RED&$e_normal@g" -e "s@cannot\sfind.*@$e_RED&$e_normal@g" -e "s@[Ww]arning:.*@$e_BLUE&$e_normal@g"
}
@@ -181,3 +182,10 @@ bindkey "^N" history-beginning-search-forward-end
source /Users/arinobu/perl5/perlbrew/etc/bashrc
source /Users/arinobu/.pythonbrew/etc/bashrc
+
+# ---------------------------------------------------------
+# Incremental completion
+# From: http://d.hatena.ne.jp/seiunsky/20110519/1305764493
+# ---------------------------------------------------------
+source ~/.zsh/plugin/incr*.zsh
+

No commit comments for this range

Something went wrong with that request. Please try again.