mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
add colors.zsh
This commit is contained in:
parent
578c4d5ab1
commit
6755b864b5
1 changed files with 17 additions and 0 deletions
17
lib/powerline/colors.zsh
Normal file
17
lib/powerline/colors.zsh
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# vim:
|
||||||
|
hn="$(hostname -s)"
|
||||||
|
|
||||||
|
# if we have a color set defined for that host, load it
|
||||||
|
if [[ -f "$ZSH/lib/powerline/$hn" ]]; then
|
||||||
|
. "$ZSH/lib/powerline/$hn"
|
||||||
|
else
|
||||||
|
|
||||||
|
colours=(22 71 152 32)
|
||||||
|
# set colours from array:
|
||||||
|
prompt_context_user_fg="${colours[1]}"
|
||||||
|
prompt_context_user_bg="${colours[2]}"
|
||||||
|
prompt_context_root_fg="${colours[3]}"
|
||||||
|
prompt_context_root_bg="${colours[4]}"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue