Skip to content

Instantly share code, notes, and snippets.

@nk0t
Created June 19, 2013 12:02
Show Gist options
  • Save nk0t/5813763 to your computer and use it in GitHub Desktop.
Save nk0t/5813763 to your computer and use it in GitHub Desktop.
# Aliases
alias emacs="vim"
alias v="vim"
alias cls="clear"
alias ls="ls -G --color"
# General Settings
PATH=$PATH:$HOME/bin
export EDITOR=vim
export LANG=ja_JP.UTF-8
export KCODE=u
setopt no_beep
setopt auto_cd
setopt auto_pushd
setopt correct
setopt magic_equal_subst
setopt prompt_subst
setopt notify
setopt equals
# Complement
autoload -U compinit; compinit
setopt auto_list
setopt auto_menu
setopt list_packed
setopt list_types
bindkey "^[[Z" reverse-menu-complete
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# Glob
setopt extended_glob
unsetopt caseglob
# History
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt bang_hist
setopt extended_history
setopt hist_ignore_dups
setopt share_history
setopt hist_reduce_blanks
autoload history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^P" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end
function history-all { history -E 1 }
# Ls Color
export LSCOLORS=Exfxcxdxbxegedabagacad
export LS_COLORS='di=01;34:ln=01;35:so=01;32:ex=01;31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
export ZLS_COLORS=$LS_COLORS
export CLICOLOR=true
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
autoload -U colors; colors
PROMPT="%{${fg[cyan]}%}%n%# %{${reset_color}%}"
PROMPT2="%{${fg[cyan]}%}%_> %{${reset_color}%}"
RPROMPT="%{${fg[green]}%}[%~]%{${reset_color}%}"
SPROMPT="%{${fg[yellow]}%}%r is correct? [Yes, No, Abort, Edit]:%{${reset_color}%}"
function cd() {
builtin cd $@ && ls;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment