diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2017-03-01 07:36:13 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2017-03-01 07:36:13 +0100 |
| commit | f763745624fe8c0780e0d2997041d3627926f071 (patch) | |
| tree | 2a25059d3a462b35e840d2c73d0bab0819a2889f /.bash_prompt | |
| parent | 3bda82d3b24b65426bc55659ce44d28b7d4596bc (diff) | |
| download | dotfiles-f763745624fe8c0780e0d2997041d3627926f071.tar.xz | |
(m) Cleanup
- remove speculative parentheses
- sort table by code
Diffstat (limited to '.bash_prompt')
| -rw-r--r-- | .bash_prompt | 8 |
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 |
