Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
tomc1985
4y ago
0 comments
Save
Share
Store the sequences in variables and put those instead. You get readability and locality!
0 comments
1 comments · 1 top-level
top
newest
oldest
nick__m
4y ago
I was about to post the exact same reply so I will post it as an example:
#!/bin/sh BLUE=$(tput setaf 4) RST=$(tput sgr0) echo "I'm ${BLUE}blue${RST}."
j
/
k
navigate · click thread line to collapse