2010-03-28から1日間の記事一覧

あるバージョン以上の Zsh か調べる

zsh

@elim % autoload -Uz is-at-least % is-at-least 3.1.6-15 && setopt NO_GLOBAL_RCS みたいな感じでできるよ #zsh http://twitter.com/mollifier/status/11198525405 ありがとう @mollifier !!というわけで以下は obsoleっっte. function zsh-greater-versi…

vcs_info が実装されていたら使う

zsh

for p in $fpath; do if [[ -e ${p}/vcs_info ]]; then autoload -Uz vcs_info zstyle ':vcs_info:*' enable git svn hg bzr zstyle ':vcs_info:bzr:*' use-simple true zstyle ':vcs_info:(svn|bzr):*' branchformat '%b:r%r' zstyle ':vcs_info:*' formats…

history-incremental-pattern-search-forward が実装されていたら使う

zsh

これでいけた。 if zle -al |grep history-incremental-pattern-search; then bindkey '^R' history-incremental-pattern-search-backward bindkey '^S' history-incremental-pattern-search-forward fi