-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
79 lines (62 loc) · 1.42 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
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
### ZSH HOME
export ZSH=$HOME/.zsh
## Load colors
autoload -U colors && colors
## Choose theme (p10k, agnoster, ...)
export THEME='custom'
## EDTIOR
export EDITOR='nvim'
export VISUAL='nvim'
## ZSH HISTORY
export HISTFILE=$ZSH/.zsh_history
export HISTSIZE=100000000
export SAVEHIST=100000000
setopt appendhistory
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_FIND_NO_DUPS
## SELECT PLUGINS
export plugins=(
zsh-syntax-highlighting
zsh-autosuggestions
nvm
git-prompt
fzf
navi-plugin
theme-change
jump
)
## SELECT SNIPPETS
export snippets=(
env
path
pyenv
tmux-autoreload
iterm2
)
## ENABLE SNIPPETS MANAGER
source $ZSH/snippets/spm.zsh
## ENABLE PLUGIN MANAGER
source $ZSH/plugins/zpm.zsh
## ENABLE THEME LOADER
source $ZSH/themes/theme-loader.zsh
# Source aliases
source $ZSH/aliases
# If no theme or custom selected load prompt
if [ -z "$THEME" ] || [ "$THEME" = "custom" ]; then
source $ZSH/snippets/prompt.zsh
fi
# Zsh to use the same colors as ls
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Change terminal theme if on my arch systems
if [ "$(uname -n)" = "arch-turbo" ] || [ "$(uname -n)" = "arch-blade" ]; then
/home/jswent/scripts/termtheme nord.yml
fi
# Keymaps
source $ZSH/keymaps.zsh
# display hardware
if [ -n "$(command -v neofetch)" ] && [ -z "$disable_neofetch" ] && [ ! -f "$ZSH/.disable_neofetch" ]; then
sfetch
fi
# Run final prelaunch scripts
source $ZSH/snippets/prelaunch.zsh