123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
-
-
-
-
-
-
-
- setopt autocd
-
- setopt interactivecomments
- setopt magicequalsubst
- setopt nonomatch
- setopt notify
- setopt numericglobsort
- setopt promptsubst
-
- WORDCHARS=${WORDCHARS//\/}
-
-
- PROMPT_EOL_MARK=""
-
-
- bindkey -e
- bindkey ' ' magic-space
- bindkey '^U' backward-kill-line
- bindkey '^[[3;5~' kill-word
- bindkey '^[[3~' delete-char
- bindkey '^[[1;5C' forward-word
- bindkey '^[[1;5D' backward-word
- bindkey '^[[5~' beginning-of-buffer-or-history
- bindkey '^[[6~' end-of-buffer-or-history
- bindkey "^[[H" beginning-of-line
- bindkey "^[[1~" beginning-of-line
- bindkey "^[[4~" end-of-line
- bindkey "^[[F" end-of-line
- bindkey '^[[Z' undo
-
-
- autoload -Uz compinit
- compinit -d ~/.cache/zcompdump
- zstyle ':completion:*:*:*:*:*' menu select
- zstyle ':completion:*' auto-description 'specify: %d'
- zstyle ':completion:*' completer _expand _complete
- zstyle ':completion:*' format 'Completing %d'
- zstyle ':completion:*' group-name ''
- zstyle ':completion:*' list-colors ''
- zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
-
- zstyle ':completion:*' rehash true
- zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
- zstyle ':completion:*' use-compctl false
- zstyle ':completion:*' verbose true
- zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
- zstyle ':completion:*' special-dirs true
-
-
- HISTFILE=~/.zsh_history
- HISTSIZE=1000
- SAVEHIST=2000
- setopt hist_expire_dups_first
- setopt hist_ignore_dups
- setopt hist_ignore_space
- setopt hist_verify
-
-
-
- alias history="history 0"
-
-
- TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S\ncpu\t%P'
-
-
-
-
-
- if [ -x /usr/bin/dircolors ]; then
- test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
- export LS_COLORS="$LS_COLORS:ow=30;44:"
-
- alias ls='ls --color=auto'
-
-
-
- alias grep='grep --color=auto'
- alias fgrep='fgrep --color=auto'
- alias egrep='egrep --color=auto'
- alias diff='diff --color=auto'
- alias ip='ip --color=auto'
-
-
-
-
-
-
-
-
-
-
- zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
- zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
- fi
-
-
- alias ll='ls -l'
- alias la='ls -A'
- alias l='ls -CF'
-
-
- if [ -d /usr/share/zsh/plugins ]; then
- export ZSH_PLUGIN_BASE="/usr/share/zsh/plugins"
- else
- export ZSH_PLUGIN_BASE="/usr/share"
- fi
-
-
-
- for file in ~/.zshrc.d/*.zsh; do
- source "$file"
- done
-
-
- if [ -f /etc/zsh_command_not_found ]; then
- . /etc/zsh_command_not_found
- fi
- compinit
|