summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2017-03-01 07:36:13 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2017-03-01 07:36:13 +0100
commitf763745624fe8c0780e0d2997041d3627926f071 (patch)
tree2a25059d3a462b35e840d2c73d0bab0819a2889f
parent3bda82d3b24b65426bc55659ce44d28b7d4596bc (diff)
downloaddotfiles-f763745624fe8c0780e0d2997041d3627926f071.tar.xz
(m) Cleanup
- remove speculative parentheses - sort table by code
-rw-r--r--.bash_prompt8
1 files changed, 4 insertions, 4 deletions
diff --git a/.bash_prompt b/.bash_prompt
index b267dbc..55c94b6 100644
--- 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