Skip to content

Commit

Permalink
Made text colours darker for lighter backgrounds to improve readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdunne committed May 4, 2017
1 parent 178d53f commit 07ba4cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ function alandavies {
paste <(grep ">" $1 | sed -r "s/$/\t###/g" | column -t -n -s $'\t' | sed -r "s/###//g") <(sed -r "s/^>(.*)$/£££>\1##K-STQNAILMFWVCRCEDGHYP###/g" $1 | tr '\n' ' ' | sed -r "s/£££/\n/g" | sed -r "s/ //g" | grep -vP "^$" |
GREP_COLORS='mt=01;41' egrep --color=always "[K]*" | \
GREP_COLORS='mt=0;0' egrep --color=always "[-]" | \
GREP_COLORS='mt=01;42' egrep --color=always "[STQN]" | \
GREP_COLORS='mt=01;90;42' egrep --color=always "[STQN]" | \
GREP_COLORS='mt=01;44' egrep --color=always "[AILMFWVC]" | \
GREP_COLORS='mt=01;41' egrep --color=always "[R]" | \
GREP_COLORS='mt=01;105' egrep --color=always "[C]" | \
GREP_COLORS='mt=01;45' egrep --color=always "[ED]" | \
GREP_COLORS='mt=01;103' egrep --color=always "[G]" | \
GREP_COLORS='mt=01;90;103' egrep --color=always "[G]" | \
GREP_COLORS='mt=01;46' egrep --color=always "[HY]" | \
GREP_COLORS='mt=01;43' egrep --color=always "[P]" | \
GREP_COLORS='mt=01;90;43' egrep --color=always "[P]" | \
sed -r "s/.*###//g") | less -SR
}

Expand Down

0 comments on commit 07ba4cc

Please sign in to comment.