-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zshrc
51 lines (39 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
export EDITOR="vim"
export ZPLUG_HOME=$HOME/.zplug
# create fake KBUILD Information by default
export KBUILD_BUILD_USER="vera"
export KBUILD_BUILD_HOST="F.R.I.D.A.Y."
# user profile
source $HOME/.profile
# zplug initialization
[[ ! -f $ZPLUG_HOME/init.zsh ]] && git clone https://github.com/zplug/zplug $ZPLUG_HOME
source $ZPLUG_HOME/init.zsh
# do self-manage
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
# load nice libs from oh-my-zsh
zplug "lib/completion", from:oh-my-zsh
zplug "lib/history", from:oh-my-zsh
zplug "lib/key-bindings", from:oh-my-zsh
zplug "lib/termsupport", from:oh-my-zsh
zplug "lib/directories", from:oh-my-zsh
# for speed debug. mine ? 230ms, not bad tho
# zplug "paulmelnikow/zsh-startup-timer"
# naisu minimal theme
MNML_USER_CHAR=$USER
MNML_INSERT_CHAR='do:'
zplug 'subnixr/minimal', use:minimal.zsh, as:theme
# auto-close quotes and brackets like a pro
zplug 'hlissner/zsh-autopair', defer:2
# another eyecandy
zplug 'zdharma/fast-syntax-highlighting', defer:2, hook-load:'FAST_HIGHLIGHT=()'
# finally install and load those plugins
zplug check || zplug install
zplug load
# returning command and folder completion when line is empty
# like a bash, but better
blanktab() { [[ $#BUFFER == 0 ]] && CURSOR=3 zle list-choices || zle expand-or-complete }
zle -N blanktab && bindkey '^I' blanktab
# load my own aliases
[[ -f $HOME/.aliases ]] && source $HOME/.aliases
# finally. paint the terminal emulator!
[[ -f ~/.cache/wal/sequences ]] && { cat ~/.cache/wal/sequences; } 2>& /dev/null