xoxys.users/templates/etc/profile.d/custom.sh.j2
Robert Kaussow 9b1612e356
Some checks failed
continuous-integration/drone/push Build is failing
initial commit
2019-11-03 18:19:53 +01:00

17 lines
511 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
umask {{ users_default_umask }}
# 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