xoxys.users/templates/etc/profile.d/custom.sh.j2
Robert Kaussow 5a08723238
All checks were successful
continuous-integration/drone/push Build is passing
feat: deploy pwpolicy if available
2022-09-20 10:01:40 +02:00

15 lines
478 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
# are we an interactive shell?
if [ "$PS1" ]; then
if [[ ${EUID} == 0 ]] ; then
PS1='\[$(tput bold)\]\[\033[38;5;9m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h [\w] \$ \[$(tput sgr0)\]'
else
PS1='\[$(tput bold)\]\[\033[38;5;12m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h [\w] \$ \[$(tput sgr0)\]'
fi
{% for item in users_global_bash_aliases %}
alias {{ item.alias }}='{{ item.command }}'
{% endfor %}
fi