-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
executable file
·49 lines (35 loc) · 947 Bytes
/
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
ZDOTDIR=$HOME/.zsh.d
HISTFILE=$ZDOTDIR/zsh_history
export ZSH_CACHE_DIR=$ZDOTDIR/cache
setopt CORRECT_ALL
setopt auto_cd
export LANG=en_US.UTF-8
for lib_file ("$ZDOTDIR"/lib/*.zsh); do
source $lib_file
done
unset lib_file
fpath+=$ZDOTDIR/completions
ZSH_THEME="ys-mod"
autoload -U colors && colors
setopt prompt_subst
export LSCOLORS="Gxfxcxdxbxegedabagacad"
source "$ZDOTDIR/themes/$ZSH_THEME.zsh-theme"
ZSH_PLUGINS="$ZDOTDIR/plugins"
plugins=(zsh-autosuggestions rg)
for plugin ($plugins); do
load_plugin $ZSH_PLUGINS $plugin
done
unset plugin
if [ -d "$HOME/bin" ] ; then
export PATH=$PATH:$HOME/bin
fi
source $ZDOTDIR/zsh.aliases
CONFIGHOST="$HOME/.zsh.d/hosts/`hostname`"
if [ -d $CONFIGHOST ] ; then
[ -f $CONFIGHOST/zshrc ] && source $CONFIGHOST/zshrc
[ -f $CONFIGHOST/zsh.aliases ] && source $CONFIGHOST/zsh.aliases
fi
unset CONFIGHOST
compinit -d $ZSH_COMPDUMP
autoload -U select-word-style
select-word-style bash