-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zpreztorc
87 lines (64 loc) · 2.35 KB
/
.zpreztorc
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Sets Prezto options.
#
# General
#
# Add directory to ZSH functions list
fpath=($fpath ~/.dotfiles/fpath)
export KEYTIMEOUT=1
# https://github.com/ryanoasis/nerd-fonts
export SEGMENT_SEPARATOR="${i_ple_pixelated_squares_big}"
export SEGMENT_SEPARATOR="${i_ple_right_half_circle_thick}"
# Save ZSH history to a ZSH-specific file
export HISTFILE=~/.zhistory
# Save all the history.
export HISTSIZE=999999999
export SAVEHIST=999999999
# Save timestamps too
export EXTENDED_HISTORY=true
# Append lines as soon as they are entered rather than waiting for shell to
# exit
export INC_APPEND_HISTORY=true
# Allow other open shells to share history (e.g. other tmux tabs)
export SHARE_HISTORY=true
# Remove duplicate lines as we go along
export HIST_SAVE_NO_DUPS=true
# Set case-sensitivity for completion, history lookup, etc.
# zstyle ':prezto:*:*' case-sensitive 'yes'
# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes'
# Add additional directories to load prezto modules from
# zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
# Set the Zsh modules to load (man zshmodules).
# zstyle ':prezto:load' zmodule 'attr' 'stat'
# Set the Zsh functions to load (man zshcontrib).
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'
# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
'environment' \
'editor' \
'completion' \
'directory' \
'history' \
'syntax-highlighting' \
'utility' \
'tmux' \
'prompt' \
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'vi'
# Auto convert .... to ../..
zstyle ':prezto:module:editor' dot-expansion 'no'
# Allow the zsh prompt context to be shown.
zstyle ':prezto:module:editor' ps-context 'yes'
# Auto start a session when Zsh is launched in a local terminal.
zstyle ':prezto:module:tmux:auto-start' local 'yes'
# Start setting up the prompt
autoload -Uz promptinit
promptinit
prompt mpurer
zstyle ':prezto:module:prompt' mpurer
# Set key mode for INSERT mode
zstyle ':prezto:module:editor:info:keymap:primary' format $'%{\e[5 q%}'"%F{167}${i_fa_chevron_right}%F{108}${i_fa_chevron_right}%F{208}${i_fa_chevron_right}"
# Set key mode for NORMAL mode
zstyle ':prezto:module:editor:info:keymap:alternate' format $'%{\e[1 q'"%F{142}${i_fa_chevron_left}%F{214}${i_fa_chevron_left}%F{109}${i_fa_chevron_left}"