dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit f763745624fe8c0780e0d2997041d3627926f071
parent 3bda82d3b24b65426bc55659ce44d28b7d4596bc
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Wed,  1 Mar 2017 07:36:13 +0100

(m) Cleanup

- remove speculative parentheses
- sort table by code

Diffstat:
M.bash_prompt | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.bash_prompt b/.bash_prompt @@ -6,7 +6,7 @@ # anything else: Never show hostname -if [ "${TERM}" = "dumb" ] +if [ "${TERM}" = dumb ] then return fi @@ -14,7 +14,7 @@ fi __show-hostname () { - case "${PS1_SHOWHOSTNAME}" in + case ${PS1_SHOWHOSTNAME} in (''|auto) [ "${SSH_CONNECTION}" ];; (yes) @@ -78,11 +78,11 @@ __end-nonprinting () __fontify () { local -A codes=( + [bold]=1 + [dim]=2 [red]=31 [green]=32 [blue]=34 - [bold]=1 - [dim]=2 ) local text=$1