123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- if [ -f ~/.dircolors ]; then
- eval $(dircolors ~/.dircolors)
- fi
- alias ls="ls --color=auto --group-directories-first -F --quoting-style literal"
- alias config='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}'
- REPORTTIME=5
- HISTFILE="${HOME}/.zhistory"
- HISTSIZE=1000
- 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?id=151738
- # ensures terminfo is setup properly
- if [[ -n ${terminfo[smkx]} ]] && [[ -n ${terminfo[rmkx]} ]]; then
- function zle-line-init () {echoti smkx}
- function zle-line-finish () {echoti rmkx}
- zle -N zle-line-init
- zle -N zle-line-finish
- fi
- # 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 "${terminfo[kcuu1]}" up-line-or-beginning-search
- bindkey "${terminfo[kcud1]}" down-line-or-beginning-search
- bindkey "^P" up-line-or-beginning-search
- bindkey "^N" 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
- bindkey "${terminfo[kdch1]}" delete-char # Del
- bindkey "${terminfo[kpp]}" backward-word # PageUp
- bindkey "${terminfo[knp]}" forward-word # PageDown
- alias l="k -h"
- alias ssh="TERM=xterm-256color ssh"
- export EDITOR=vim
|