blob: e33b7b60b3eac27899287ae13a91a66c806ae883 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
zstyle ':completion:*' menu select
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit
zmodload zsh/complist
compinit
_comp_options+=(globdots)
HISTFILE=~/.histfile
HISTSIZE=1000000
SAVEHIST=1000000
setopt appendhistory hist_ignore_dups extendedglob autocd
unsetopt beep
bindkey -v
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history
source $HOME/.config/zsh/aliases
source $HOME/.config/zsh/env
autoload -Uz promptinit
PROMPT_EOL_MARK=""
promptinit
PROMPT='%B%F{3}%n@%m %~>%b%f '
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
############################################
# vi mode
function zle-keymap-select () {
case $KEYMAP in
vicmd) echo -ne '\e[1 q';; # beam
viins|main) echo -ne '\e[5 q';; # block
esac
}
zle -N zle-keymap-select
############################################
stty tabs
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
|