Created
April 8, 2013 14:01
-
-
Save akihumi/5336978 to your computer and use it in GitHub Desktop.
設定ファイル
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
#!/bin/zsh | |
# Autocomplite | |
autoload -U compinit | |
compinit | |
setopt correct | |
# HISTORY | |
HISTFILE=~/.zsh_history | |
SAVEHIST=100000 | |
HISTSIZE=100000 | |
setopt inc_append_history | |
setopt hist_ignore_dups | |
setopt append_history | |
setopt share_history | |
setopt no_beep | |
# PROMPT | |
PROMPT="%F{magenta}%m%f%# " | |
# RPROMPT for vcs repository | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' formats '(%s)-[%b]' | |
zstyle ':vcs_info:*' actionformats '(%s)-[%b|%a]' | |
precmd () { | |
psvar=() | |
LANG=en_US.UTF-8 vcs_info | |
[[ -n "$vcs_info_msg_0_" ]] && psvar[1]="$vcs_info_msg_0_" | |
} | |
RPROMPT="%F{green}%1(v|%1v|)%f%F{cyan}[%~]%f" | |
eval "$(rbenv init -)" | |
# # # alias | |
setopt complete_in_word | |
setopt auto_cd | |
setopt complete_aliases | |
alias ll='ls -lh' | |
alias r='rails' | |
alias g='git' | |
alias ls='ls -F' | |
alias la='ls -a' | |
alias grep='grep --color=auto' | |
alias cp='cp -i' | |
alias rm='rm -i' | |
alias mv='mv -i' | |
alias lv='lv -c' | |
alias st='shutdown -h now' | |
alias gl='git log --stat --summary' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment