Last active
May 2, 2018 04:50
-
-
Save ytakano/d5b8d81a998029b3330e to your computer and use it in GitHub Desktop.
zshの設定ファイル
This file contains 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
export TERM=xterm | |
#export PROMPT="%n@%m %#> " | |
export RPROMPT='[%~]' | |
export PATH=/homebrew/bin:/homebrew/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/texlive/2015/bin/x86_64-darwin | |
export LD_LIBRARY_PATH=/homebrew/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib | |
export LIBRARY_PATH=$LD_LIBRARY_PATH | |
export C_INCLUDE_PATH=/homebrew/include:/usr/include:/usr/local/include:/usr/X11R6/include | |
export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH | |
export MANPATH=$MANPATH:/homebrew/share/man:/usr/share/man:/usr/local/man | |
export HISTFILE=$HOME/.zsh_history | |
export HISTSIZE=10000 | |
export SAVEHIST=10000 | |
export EDITOR=vi | |
export PAGER=less | |
export LC_ALL=ja_JP.UTF-8 | |
export LANG=ja_JP.UTF-8 | |
export CC=gcc | |
export CXX=g++ | |
export MAKEFLAGS="-j 20" |
This file contains 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
setopt auto_menu auto_cd correct auto_name_dirs auto_remove_slash | |
setopt extended_history inc_append_history hist_ignore_dups hist_ignore_space prompt_subst share_history | |
setopt pushd_ignore_dups rm_star_silent sun_keyboard_hack | |
setopt extended_glob list_types no_beep always_last_prompt | |
setopt cdable_vars auto_param_keys magic_equal_subst sh_wordsplit | |
setopt auto_pushd complete_aliases | |
set convert-meta off | |
set meta-flag on | |
set output-meta on | |
set input-meta on | |
set kanji-code utf-8 | |
unsetopt beep | |
alias ls='ls -FG' | |
alias la='ls -FGa' | |
alias ll='ls -FGal' | |
alias l.='ls -FGa .[a-zA-Z0-9]*' | |
autoload -U compinit | |
compinit | |
bindkey -e | |
# set terminal title including current directory | |
# | |
case "${TERM}" in | |
kterm*|xterm) | |
precmd() { | |
echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD}\007" | |
} | |
;; | |
esac | |
autoload -Uz vcs_info | |
# 表示フォーマットの指定 | |
# %b ブランチ情報 | |
# %a アクション名(mergeなど) | |
zstyle ':vcs_info:*' formats '[%b]' | |
zstyle ':vcs_info:*' actionformats '[%b|%a]' | |
precmd () { | |
psvar=() | |
LANG=en_US.UTF-8 vcs_info | |
[[ -n "$vcs_info_msg_0_" ]] && psvar[1]="$vcs_info_msg_0_" | |
} | |
# バージョン管理されているディレクトリにいれば表示,そうでなければ非表示 | |
export PROMPT="%n@%m %1(v|%F%1v%f |)%#> " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment