Skip to content

Commit

Permalink
update zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
s10myk4 committed Jun 3, 2014
1 parent 8b8e7e1 commit 27dc698
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
16 changes: 7 additions & 9 deletions home/.zsh/completion.zsh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# 補完
if [[ -d $HOME/.zsh/zsh-completions/src ]]; then
#if [[ -d $HOME/.zsh/zsh-completions/src ]]; then
fpath=($HOME/.zsh/zsh-completions/src $fpath)
fi
if [[ -d $HOME/.zsh/completions ]]; then
fpath=($HOME/.zsh/completions $fpath)
fi
# autoload -Uz compinit
# compinit -u
# 補完機能を有効にする
autoload -Uz compinit; compinit
#fi
#if [[ -d $HOME/.zsh/completion ]]; then
# fpath=($HOME/.zsh/completion $fpath)
#fi
autoload -Uz compinit
compinit -u

# 補完で小文字でも大文字にマッチさせる
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
Expand Down
1 change: 0 additions & 1 deletion home/.zsh/env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ path=(~/bin(N-/) ~/homebrew/bin(N-/) $path)
# あるマシンには存在するがマシン固有のPATH を追加したいなら、
# パスの後ろに (N-/) をつけると、ディレクトリが存在しない場合、パスが空文字列に置換される
# 詳細は `man zshexpn` の Glob Qualifiers を参照
path=(/machine1/only/bin(N-/) $path)
8 changes: 6 additions & 2 deletions home/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export LANG=ja_JP.UTF-8
autoload -Uz colors
colors
# keyBind like vim
# keyBind like emacs
bindkey -e

source ~/.zsh/env.zsh
Expand All @@ -16,6 +16,11 @@ HISTFILE=~/.zsh_history
HISTSIZE=1000000
SAVEHIST=1000000

# 日本語ファイル名を表示可能
setopt print_eight_bit
# フローコントロールを無効
setopt no_flow_control

# プロンプト
# 2行表示
PROMPT="%{${fg[blue]}%}[%n@%m]%{${reset_color}%} %~ %# "
Expand All @@ -30,7 +35,6 @@ zstyle ':zle:*' word-style unspecified

########################################
# キーバインド

# ^R で履歴検索をするときに * でワイルドカードを使用出来るようにする
bindkey '^R' history-incremental-pattern-search-backward
bindkey '^S' history-incremental-pattern-search-forward
Expand Down

0 comments on commit 27dc698

Please sign in to comment.