xoxys.users/templates/etc/profile.d/custom.sh.j2

17 lines
511 B
Plaintext
Raw Normal View History

2019-11-03 17:19:53 +00:00
#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