Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
Commits on Source (2)
color updates
· 8ba702eb
Nicolas Lenz
authored
Nov 06, 2019
8ba702eb
Merge branch 'master' of git.eisfunke.com:config/zsh
· 56ece1d9
Nicolas Lenz
authored
Nov 06, 2019
56ece1d9
Show whitespace changes
Inline
Side-by-side
prompt.zsh
View file @
56ece1d9
...
...
@@ -16,12 +16,13 @@ PROMPT_CONNECTION=🌐 # Globe
# Colors
PROMPT_CTHEME
=
# Theme color. Is set by prompt_set_themecolor.
PROMPT_CPATH
=
237
# Path background color
PROMPT_CFONT
=
15
# Font color
PROMPT_CFAIL
=
1
# Failure red
PROMPT_CCLEAN
=
243
PROMPT_CCHANGE
=
203
PROMPT_CSTAGED
=
177
PROMPT_CPROMPT
=
#da4e00 # Prompt symbol color
PROMPT_CPATH
=
#403854 # Path background color
PROMPT_CFONT
=
15
# Font color (white)
PROMPT_CFAIL
=
9
# Failure color (red)
PROMPT_CCLEAN
=
243
# VCS color, clean (gray)
PROMPT_CCHANGE
=
203
# VCS color, changed (light red)
PROMPT_CSTAGED
=
177
# VCS color, staged changes (light blue)
# Variables
PROMPT_EXIT
=
0
...
...
@@ -160,7 +161,7 @@ function prompt_vcs {
function
lprompt_main
{
lprompt_seg prompt_exitcode
$PROMPT_CFAIL
lprompt_seg prompt_workdir
$PROMPT_CPATH
lprompt_seg prompt_symbol
$PROMPT_C
THEME
lprompt_seg prompt_symbol
$PROMPT_C
PROMPT
lprompt_end
}
...
...
@@ -175,16 +176,15 @@ function rprompt_main {
# --- Misc functions ---
function
welcome_message
{
lprompt_seg prompt_hello
$PROMPT_C
THEME
lprompt_seg prompt_hello
$PROMPT_C
PROMPT
lprompt_end
prompt_nametime
}
function
prompt_set_themecolor
{
case
$(
cat
/proc/sys/kernel/hostname
)
in
melissa
)
PROMPT_CTHEME
=
90
;;
# Dark Purple
miranda
)
PROMPT_CTHEME
=
208
;;
# Orange
mabel
)
PROMPT_CTHEME
=
133
;;
# Pink
melissa
)
PROMPT_CTHEME
=
126
;;
# Dark Pink
miranda
)
PROMPT_CTHEME
=
#e97300;; # Orange
sapphire
)
PROMPT_CTHEME
=
17
;;
# Dark Blue
ruby
)
PROMPT_CTHEME
=
160
;;
# Red
obsidian
)
PROMPT_CTHEME
=
233
;;
# Dark Gray
...
...