22 lines
672 B
Django/Jinja
22 lines
672 B
Django/Jinja
# {{ ansible_managed }}
|
||
|
||
if [ "$EUID" -eq 0 ]; then
|
||
POWERLINE_HOSTNAME_BG="rouge"
|
||
POWERLINE_HOSTNAME_FG="blanc"
|
||
else
|
||
POWERLINE_HOSTNAME_BG="{{ powerline_hostname_bg | default('blanc') }}"
|
||
POWERLINE_HOSTNAME_FG="{{ powerline_hostname_fg | default('noir-fedora') }}"
|
||
fi
|
||
|
||
#{% if powerline_hostname_bg is defined %}
|
||
#POWERLINE_HOSTNAME_BG="{{ powerline_hostname_bg }}"
|
||
#{% endif %}
|
||
#{% if powerline_hostname_fg is defined %}
|
||
#POWERLINE_HOSTNAME_FG="{{ powerline_hostname_fg }}"
|
||
#{% endif %}
|
||
|
||
. ${HOME}/.config/powerline.bash
|
||
PROMPT_COMMAND='__update_ps1 $?'
|
||
|
||
POWERLINE_SEGMENTS="logo heure hostname pwd python git git_sync docker status jobs"
|