-
Notifications
You must be signed in to change notification settings - Fork 1
/
avil-pi.zsh-theme
38 lines (27 loc) · 1.22 KB
/
avil-pi.zsh-theme
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
# AVIL ZSH Theme
if [ -e "$ZSH/themes/avil/lib/functions.zsh" ]; then
source "$ZSH/themes/avil/lib/functions.zsh"
else
echo "[oh-my-zsh] in avil theme '$ZSH/themes/avil/lib/functions.zsh' not found"
fi
function get_temp {
local TEMPER="$(cat /sys/devices/virtual/thermal/thermal_zone1/temp)"
echo "\033[38;5;8m${TEMPER:0:2}°C\033[m"
}
# settings
typeset +H _current_dir="%{$FG[014]%}%0~%{$reset_color%}"
typeset +H _return_status=" %(?.✔.%{$fg[red]%}%?%f)"
typeset +H _hist_no="%{$fg[grey]%}%h%{$reset_color%}"
typeset +H _PS_ICON='❯'
if [[ $UID == 0 || $EUID == 0 ]]; then
typeset +H _PS_ICON="%{$fg_bold[red]%}#%{$reset_color%}"
fi
RPROMPT='${_return_status}'
PROMPT='%F{green}%n@%m%{$reset_color%} $(get_temp) $(_get_git_avil_prompt)${_current_dir}
%{%(!.%F{red}.%F{blue})%}${_PS_ICON}%{$reset_color%} '
PROMPT2='%{%(!.%F{red}.%F{white})%}◀%{$reset_color%} '
MODE_INDICATOR="%{$fg_bold[yellow]%}❮%{$reset_color%}%{$fg[yellow]%}❮❮%{$reset_color%}"
# LS colors, made with https://geoff.greer.fm/lscolors/
export LSCOLORS="exfxcxdxbxegedabagacad"
export LS_COLORS='di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'