1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- if [ -f ~/.dircolors ]; then
- eval $(dircolors ~/.dircolors)
- fi
- alias ls="ls --color=auto --group-directories-first -F --quoting-style literal"
- alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
- autoload -U compinit && compinit
- zstyle ':completion:*' menu select
- zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
- zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
- HISTFILE="${HOME}/.zhistory"
- SAVEHIST=10000
- setopt inc_append_history
- setopt share_history
- setopt extended_history
- setopt histignorealldups
- setopt histignorespace
- setopt autocd
- setopt autopushd
- setopt longlistjobs
- setopt nohup
- setopt extended_glob
- setopt noglobdots
- setopt noshwordsplit
- bindkey -e
- # https://bbs.archlinux.org/viewtopic.php?pid=1170080#p1170080
- autoload up-line-or-beginning-search
- autoload down-line-or-beginning-search
- zle -N up-line-or-beginning-search
- zle -N down-line-or-beginning-search
- bindkey "^[[A" up-line-or-beginning-search
- bindkey "^[[B" down-line-or-beginning-search
- autoload -z edit-command-line
- zle -N edit-command-line
- bindkey "^X^E" edit-command-line
- bindkey '^R' zaw-history
- bindkey "${terminfo[khome]}" beginning-of-line
- bindkey "${terminfo[kend]}" end-of-line
- alias l="k -h"
- alias ssh="TERM=xterm-256color ssh"
|