-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
45 lines (36 loc) · 1.28 KB
/
Copy pathzshrc
File metadata and controls
45 lines (36 loc) · 1.28 KB
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
# vim:foldmethod=marker
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
PURE_PROMPT_SYMBOL='$'
# Hacky Hacks {{{
function precmd { [ -z "$PREPEND" ] && PREPEND=1 || print }
function print {
# Prevent the theme from printing an unnecessary newline when new terminals are spawned.
[ 0 -eq "$#" -a "prompt_pure_precmd" = "${funcstack[-1]}" ] || builtin print "$@"
}
# }}}
# Plugins {{{
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
zinit light sindresorhus/pure
zinit ice wait'!0' silent
zinit light zsh-users/zsh-syntax-highlighting
zinit ice wait'!0' silent
zinit light zsh-users/zsh-completions
zinit ice wait'!0' silent
zinit light hlissner/zsh-autopair
zinit ice wait'!0' silent
zinit light Tarrasch/zsh-bd
zinit ice wait lucid atload'_zsh_autosuggest_start'
zinit light zsh-users/zsh-autosuggestions
# }}}
# Config and Aliases {{{
ZSH_THEME=''
source ~/.oh-my-zsh/oh-my-zsh.sh
zstyle ':prompt:pure:path' color '#A89984'
zstyle ':prompt:pure:git:*' color '#FE8019'
zstyle ':prompt:pure:git:branch' color '#FABD2F'
zstyle ':prompt:pure:prompt:success' color '#7C6F64'
eval "$(direnv hook zsh)"
alias ls='exa -Fl --octal-permissions --no-user --git -s newest --colour=auto --group-directories-first'
# }}}