forked from mattmc3/zdotdir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zstyles
93 lines (73 loc) · 2.27 KB
/
.zstyles
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
87
88
89
90
91
92
93
#!/bin/zsh
#
# .zstyles - zstyle settings for features/plugins that need them.
#
#
# Antidote
#
: ${ANTIDOTE_HOME:=${XDG_CACHE_HOME:-~/.cache}/repos}
# Keep all 3 for different test scenarios.
antidote_repo=$ANTIDOTE_HOME/mattmc3/antidote
# antidote_repo=~/Projects/mattmc3/antidote
# antidote_repo=${HOMEBREW_PREFIX:-/opt/homebrew}/opt/antidote/share/antidote
zstyle ':antidote:home' path $ANTIDOTE_HOME
zstyle ':antidote:repo' path $antidote_repo
zstyle ':antidote:bundle' use-friendly-names 'yes'
zstyle ':antidote:plugin:*' defer-options '-p'
zstyle ':antidote:*' zcompile 'yes'
#
# Zephyr features
#
# Use caching.
zstyle ':zephyr:plugin:*' 'use-cache' 'yes'
#
# Editor
#
# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':zephyr:plugin:editor' key-bindings 'emacs'
# Auto convert .... to ../..
zstyle ':zephyr:plugin:editor' dot-expansion 'yes'
# Use ^z to return background processes to foreground.
zstyle ':zephyr:plugin:editor' symmetric-ctrl-z 'yes'
# Expand aliases to their actual command like Fish abbreviations.
zstyle ':zephyr:plugin:editor' glob-alias 'yes'
noexpand=(
=
l
ls
g
grep
gpg
rg
vi
z
0 1 2 3 4 5 6 7 8 9
)
zstyle ':zephyr:plugin:editor:glob-alias' noexpand $noexpand
# Set the default (magic) command when hitting enter on an empty prompt.
zstyle ':zephyr:plugin:editor' magic-enter 'yes'
zstyle ':zephyr:plugin:editor:magic-enter' command 'la'
zstyle ':zephyr:plugin:editor:magic-enter' git-command 'git status -sb .'
# Editor style
zstyle -s ':zephyr:plugin:editor' key-bindings 'emacs'
# From compinit docs:
# To avoid these tests and make all files found be used without asking, use the
# option -u, and to make compinit silently ignore all insecure files and directories
# use the option -i. This security check is skipped entirely when the -C option is
# given, provided the dumpfile exists.
zstyle ':zephyr:plugin:completion' 'disable-compfix' yes
zstyle ':zephyr:plugin:completion' compstyle 'zephyr'
#
# Prompt
#
# Set prompt
zstyle ':zephyr:plugin:prompt' theme starship syl
#
# Completions
#
zstyle ':plugin:ez-compinit' 'compstyle' 'zshzoo'
# alias-finder
zstyle ':omz:plugins:alias-finder' autoload yes
zstyle ':omz:plugins:alias-finder' longer yes
zstyle ':omz:plugins:alias-finder' exact yes
zstyle ':omz:plugins:alias-finder' cheaper yes