From cd62ead5ead881b7f55e2404cdcf2d7e30bb33fb Mon Sep 17 00:00:00 2001 From: "Ethan N. Paul" Date: Thu, 13 Dec 2018 22:01:48 -0500 Subject: [PATCH] Update prompt colors in bashrc and motd template --- playbooks/files/bashrc.sh | 2 +- playbooks/templates/motd.j2 | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/playbooks/files/bashrc.sh b/playbooks/files/bashrc.sh index 30789c5..501291d 100644 --- a/playbooks/files/bashrc.sh +++ b/playbooks/files/bashrc.sh @@ -13,7 +13,7 @@ parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } -export PS1="\[\e[0;97m\]\[\e[94m\]\u\[\e[0;97m\]@\[\e[1;96m\]\h\[\e[33m\]\$(parse_git_branch) \e[0m\[\e[37;3m\]\w\[\e[33m\] \[\e[0;97m\]\$\[\e[0m\] " +export PS1="\[\e[0;97m\]\[\e[37m\]\u\[\e[1;94m\]@\[\e[94m\]\h\[\e[0;33m\]$(parse_git_branch) \[\e[37m\]\w\[\e[33m\] \[\e[0;97m\]$\[\e[0m\] " function venv() { DIR="/home/$USER/.virtualenvs" diff --git a/playbooks/templates/motd.j2 b/playbooks/templates/motd.j2 index eb1c177..eb7c0c5 100644 --- a/playbooks/templates/motd.j2 +++ b/playbooks/templates/motd.j2 @@ -1,11 +1,8 @@ - ______ _ _ __ _ _______ -| ___ \ | \ / | | \ | | |__ __| -| | | | | \ / | | \ \ | | | | -| | | | | \/ | | |\ \ | | | | -| | | | | |\ /| | | | \ \| | | | -| |___| | | | \/ | | | | \ \ | __| |__ - \______| |_| |_| |_| \__| |______/ + _______ __ _ ______ _______ __ _ _______ + | _____| | \ | | | __ | | ___ | | \ | | | _____| + | |____ | | \ | | | |__| | | | | | | | \ | | | |____ + | ____| | |\ \| | | ____| | | | | | |\ \| | | ____| + | |_____ | | \ | | | | | |___| | | | \ | | | |_____ + |_______| |_| \__| |_| O |_______| |_| \__| |_______| {{ description | default('ENPN Distributed System') }} - -{{ ansible_distribution }} {{ ansible_distribution_version }} - Ansible'd {{ ansible_date_time.date }}