When it’s ready.

出来るまで出来ない

OSX Leopard 10.5 での zshとscreenの設定

CentOSとか、ubuntuで使ってる。dotファイル持ってきても上手に動いてくれないので
またもや、ちびちび調べながら、dotファイルを育て中。間違ったりしてたら教えてください。

環境

  • OSX 10.5(Leopard) *1
  • ターミナル(OS標準:2.0) *2
  • /bin/zsh (Ver4.3.4だと思う)

.zshrc(~/.zshrc)

setopt ignore_eof prompt_subst extended_glob numeric_glob_sort
setopt auto_menu auto_cd correct auto_name_dirs auto_remove_slash
setopt extended_history share_history hist_ignore_all_dups hist_ignore_space
setopt extended_history hist_ignore_all_dups hist_ignore_space
setopt pushd_ignore_dups
setopt list_types no_beep always_last_prompt
setopt cdable_vars sh_word_split auto_param_keys
unsetopt promptcr
setopt completeinword

### prompts
# 左側のプロンプト
# id -host$
PROMPT="%m%#%""{%} "
# 右側のプロンプト
# [currentPath]
RPROMPT="%{%}[%~]%{%}"

# ls時の文字の色づけ($ ls -G が不可欠)
zmodload zsh/complist
export ZLS_COLORS=':no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:'


# set aliases
alias ls='ls -GwF '
alias ll='ls -law '
alias la='ls -aw '
alias eng='LANG=C LANGUAGE=C LC_ALL=C'
alias -g lG='| grep '

# fool ploof
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'

# キーバインドをemacs風にする
bindkey -e

.zshenv (~/.zshenv)

# Japanese setting
export LANG=ja_JP.UTF-8
export SHELL=/bin/zsh
umask 022

# Path Setting
path=($HOME/local/bin $HOME/local/X11R6/bin \
    /bin /usr/local/bin /usr/bin /opt/local/bin \
    /usr/X11R6/bin /usr/local/mysql/bin /sbin)
manpath=(/usr/share/man )
export LD_LIBRARY_PATH="$HOME/local/lib:$LD_LIBRARY_PATH"
export LD_RUN_PATH="$HOME/local/lib:$LD_RUN_PATH"

export EDITOR="vim"
export SVN_EDITOR="vim"

### end of file

.screenrc (~/.screenrc)

ついでに、screenの設定ファイル。エスケープはCTRL+wになります。

defencoding utf8
escape ^z^z

hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w"

bind -c REGION 2 split
bind -c REGION 1 only
bind -c REGION 0 remove
bind -c REGION o focus
bind -c REGION ^ resize
bind x command -c REGION
idle 3600

*1:f:id:a2c:20071105200545p:image

*2:f:id:a2c:20071105200544p:image