Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
設定ファイル
#!/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