-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
63 lines (48 loc) · 1.5 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
fpath=($HOME/.zsh-completions $fpath)
autoload -Uz compinit promptinit
compinit
promptinit
# allow bash-style comments on command-line
setopt interactivecomments
# TODO: decide what prompt you want
prompt redhat
## KEYBINDINGS
bindkey -v
# Mash j and k together to enter command mode
bindkey -M viins 'jk' vi-cmd-mode
bindkey -M viins 'kj' vi-cmd-mode
bindkey -M vicmd '^L' vi-repeat-find
# [untested] make backspace behave more like vim instead of default vi
bindkey "^?" backward-delete-char
export KEYTIMEOUT=10
## COMPLETION
# automatically find new executables in the $PATH
zstyle ':completion:*' rehash true
# start: https://web.archive.org/web/20190411104837/http://www.linux-mag.com/id/1106/
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' group-name ''
# end: https://web.archive.org/web/20190411104837/http://www.linux-mag.com/id/1106/
# show current auto selection
#zstyle ':completion:*' menu yes select
## HISTORY
HISTFILE="$HOME"/.zsh_history
HISTSIZE=10000000
SAVEHIST=10000000
setopt hist_expire_dups_first
setopt hist_ignore_space
## ENVIRONMENT VARIABLES
# TODO: put these in zprofile
export EDITOR="nvim"
# TODO: this should probably go before everything else
if [[ -f ~/.aliases ]];then
source $HOME/.aliases
fi
if [[ -f ~/.shell_funcs ]];then
source $HOME/.shell_funcs
fi
if [[ -f ~/.env_vars ]];then
source $HOME/.env_vars
fi