-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
124 lines (107 loc) · 3.83 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#Hacksaurus
cat ~/.bin/Hacksaurus.txt
#Instant Prompt
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
#Aliases
alias vim="nvim"
#Setup
ZSH=/usr/share/oh-my-zsh/
ZSH_CUSTOM=/usr/share/zsh/
DISABLE_AUTO_UPDATE="true"
#Powerlevel9k
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_HIDE_BRANCH_ICON=true
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(background_jobs virtualenv history time)
#Home
POWERLEVEL9K_HOME_ICON=""
POWERLEVEL9K_FOLDER_ICON=""
POWERLEVEL9K_HOME_SUB_ICON=""
POWERLEVEL9K_ETC_ICON=""
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=""
POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR=""
POWERLEVEL9K_LEFT_SEGMENT_END_SEPARATOR=" "
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=""
POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR=""
POWERLEVEL9K_RIGHT_SEGMENT_END_SEPARATOR=""
#Icon
POWERLEVEL9K_LINUX_ARCH_ICON=" "
POWERLEVEL9K_OS_ICON_BACKGROUND="238"
POWERLEVEL9K_OS_ICON_FOREGROUND="249"
POWERLEVEL9K_PYTHON_ICON=""
#Directory
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
POWERLEVEL9K_SHORTEN_DELIMITER=""
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="240"
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="249"
POWERLEVEL9K_DIR_HOME_BACKGROUND="240"
POWERLEVEL9K_DIR_HOME_FOREGROUND="249"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="240"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="249"
POWERLEVEL9K_DIR_ETC_BACKGROUND="240"
POWERLEVEL9K_DIR_ETC_FOREGROUND="249"
#Github
POWERLEVEL9K_VCS_CLEAN_BACKGROUND="002"
POWERLEVEL9K_VCS_CLEAN_FOREGROUND="000"
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND="009"
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND="000"
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND="004"
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND="000"
#Background Jobs
POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE_ALWAYS=true
POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=true
POWERLEVEL9K_BACKGROUND_JOBS_ICON="\uF013"
POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND="008"
POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND="007"
#History
POWERLEVEL9K_HISTORY_BACKGROUND="240"
POWERLEVEL9K_HISTORY_FOREGROUND="249"
#Time
POWERLEVEL9K_TIME_ICON=""
POWERLEVEL9K_TIME_BACKGROUND="246"
POWERLEVEL9K_TIME_FOREGROUND="238"
#Aliases
alias tb="ncat termbin.com 9999"
#Extra
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR
fi
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
#Syntax Highlighting
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZSH_HIGHLIGHT_STYLES[default]=fg=250
ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=red,bold
ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=108
ZSH_HIGHLIGHT_STYLES[alias]=fg=063
ZSH_HIGHLIGHT_STYLES[builtin]=fg=063
ZSH_HIGHLIGHT_STYLES[function]=fg=063
ZSH_HIGHLIGHT_STYLES[command]=fg=063
ZSH_HIGHLIGHT_STYLES[precommand]=fg=069
ZSH_HIGHLIGHT_STYLES[path]=fg=249,underline
ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=222
ZSH_HIGHLIGHT_STYLES[comment]=fg=245,italic
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=250
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=250
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=fg=250
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=033
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=173
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=173
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=140
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=140
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=140
ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=250
ZSH_HIGHLIGHT_STYLES[bracket-level-2]=fg=250
ZSH_HIGHLIGHT_STYLES[bracket-level-3]=fg=250
ZSH_HIGHLIGHT_STYLES[bracket-level-4]=fg=250
ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=fg=237,bold,bg=74
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=fg=240
#Larger History Size
HISTSIZE=1000000000
SAVEHIST=1000000000