Created
June 30, 2014 09:25
-
-
Save wakamsha/3f0ad354d8dec47b66ba to your computer and use it in GitHub Desktop.
.zshrc 設定メモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by newuser for 5.0.2 | |
# rbenv | |
eval "$(rbenv init -)" | |
# git code assist | |
fpath=($(brew --prefix)/share/zsh/site-functions $fpath) | |
######################################## | |
# 補完 | |
# 補完機能を有効にする | |
autoload -U compinit | |
compinit -u | |
######################################## | |
# 環境変数 | |
export LANG=ja_JP.UTF-8 | |
# ヒストリの設定 | |
HISTFILE=~/.zsh_history | |
HISTSIZE=1000000 | |
SAVEHIST=1000000 | |
# 色を使用出来るようにする | |
autoload -Uz colors | |
colors | |
######################################## | |
# オプション | |
# 日本語ファイル名を表示可能にする | |
setopt print_eight_bit | |
# beep を無効にする | |
setopt no_beep | |
# フローコントロールを無効にする | |
setopt no_flow_control | |
# '#' 以降をコメントとして扱う | |
setopt interactive_comments | |
# ディレクトリ名だけでcdする | |
setopt auto_cd | |
# cd したら自動的にpushdする | |
setopt auto_pushd | |
# 重複したディレクトリを追加しない | |
setopt pushd_ignore_dups | |
# = の後はパス名として補完する | |
setopt magic_equal_subst | |
# 同時に起動したzshの間でヒストリを共有する | |
setopt share_history | |
# 同じコマンドをヒストリに残さない | |
setopt hist_ignore_all_dups | |
# ヒストリファイルに保存するとき、すでに重複したコマンドがあったら古い方を削除する | |
setopt hist_save_nodups | |
# スペースから始まるコマンド行はヒストリに残さない | |
setopt hist_ignore_space | |
# ヒストリに保存するときに余分なスペースを削除する | |
setopt hist_reduce_blanks | |
# 補完候補が複数あるときに自動的に一覧表示する | |
setopt auto_menu | |
# 高機能なワイルドカード展開を使用する | |
#setopt extended_glob |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment