powerline.bash/templates/powerline.custom.j2
2024-12-17 17:30:08 +01:00

22 lines
672 B
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# {{ 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"