-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
35 lines (28 loc) · 1.08 KB
/
.zshrc
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
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
setopt AUTO_CD
setopt INTERACTIVE_COMMENTS
setopt MENU_COMPLETE
setopt COMPLETE_IN_WORD
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_ignore_space
bindkey -e
# Keybindings
bindkey "^[[H" beginning-of-line # Home
bindkey "^[[F" end-of-line # End
bindkey "^[[3~" delete-char # Del
bindkey "^[[3;5~" kill-word # Ctrl-Del
bindkey "^[[1;5C" forward-word # Ctrl-Arrow_right
bindkey "^[[1;5D" backward-word # Ctrl-Arrow_left
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zshcache_time="$(date +%s%N)"
source /usr/share/doc/pkgfile/command-not-found.zsh
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
antidote load
ZSH_AUTOSUGGEST_STRATEGY=(completion history)
# Misc aliases
alias config="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh