blob: 4d2d0b16032500d2571715d2cce8df76aec80662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/zsh
# # oh-my-zsh
# zstyle ':omz:update' mode disabled
# DISABLE_AUTO_UPDATE=true
# DISABLE_UPDATE_PROMPT=true
# plugins=(zsh-syntax-highlighting)
# export ZSH="$XDG_DATA_HOME/oh-my-zsh"
# export ZSH_COMPDUMP="$XDG_CACHE_HOME/zcompdump"
# source "$ZSH/oh-my-zsh.sh"
# prompt
source "$XDG_CONFIG_HOME/zsh/prompt"
# do not glob for calculator command
aliases[=]="noglob ="
autoload -U compinit
# completion
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' special-dirs true
setopt auto_menu
setopt complete_in_word
setopt always_to_end
# keybinds
bindkey -e # emacs bindings
bindkey '^[[Z' reverse-menu-complete
# zsh autocompletion
compinit -d "$ZSH_COMPDUMP"
|