まぁ会社で使いたいだけ。。

  • .zshrc
[ -f ~/.zshrc.mine ] && source ~/.zshrc.mine
bindkey -e

autoload zed
autoload zargs

#LANG=ja_JP.UTF-8

local RED=$'%{\e[1;35m%}'
local DEFAULT=$'%{\e[1;m%}'

setopt prompt_subst
setopt extended_glob

PROMPT='[%~]'
#PROMPT=$RED'[%~]'$DEFAULT

#RPROMPT=$RED'%t'$DEFAULT
RPROMPT='%t'

HISTFILE=$HOME/.zsh-history
HISTSIZE=1000000
SAVEHIST=1000000
setopt hist_ignore_dups
setopt extended_history
setopt share_history

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 "^P" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end 

zstyle ':completion:*:default' menu select=1
zstyle ':completion:*' list-colors ''
setopt auto_cd
setopt auto_pushd
setopt list_packed

autoload -U compinit
compinit -u

setopt correct

alias -s txt=vim
alias -s html=w3m
alias -s zip=zipinfo
alias ls='ls -G'
alias rubysrc='cd /opt/local/lib/ruby'


function chpwd(){ls}
function fxg() {
  find -name '*.$1' | xargs grep -n '$2'
}

function history-all {history -E 1}

_rake_does_task_list_need_generating () {
    if  ! -f .rake_tasks ; then return 0;
    else
        return $( Rakefile -nt .rake_tasks )
    fi
}

_rake () {
    if  -f Rakefile ; then
        if _rake_does_task_list_need_generating; then
            echo "\nGenerating .rake_tasks..." >&2
            rake --silent --tasks | cut -d " " -f 2 >| .rake_tasks
        fi
        compadd $(<.rake_tasks)
    fi
}

compdef _rake rake                                                                  
  • .zshrc.mine
autoload predict-on
predict-on
  • .vimrc
set tabstop=8
set softtabstop=4
set shiftwidth=2
set expandtab
set smarttab
set number
set ruler
set showcmd

set autoindent
set smartindent
set incsearch
set ignorecase
set hlsearch
set wildmenu
set nobackup
set list
set showmode
syntax on
filetype on
filetype plugin indent on

set foldmethod=indent
set foldlevel=0

let g:netrw_alto = 1
let g:netrw_altv = 1


map    :bnext
map    :bprevious
nnoremap  :grep  ./*

"set enc=utf-8
"set fenc=utf-8
"set fencs=iso-2022-jp,euc-jp,cp932
"
"rails.vim
let g:rails_level=4
let g:rails_default_file="app/controllers/application.rb"
let g:rails_default_database="sqlite3"

"rubycomplete.vim
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
  • .screenrc
defencoding uft8
escape ^Zz

hardstatus alwayslastline "screen |%c %m/%d | %w"
shell zsh