Skip to content

Commit

Permalink
chore: add some helpful notices about $[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Oct 20, 2024
1 parent 31a7c6d commit 333d0e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cufetch.1
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ layout = [
Each part can have a tag or anything else.
.PP
For example: $[$<user.name>,$(echo $USER),correct,NOT correct]
.br
.nf
This is useful when on some terminal or WM the detection can be different than others
Or maybe even on holidays for printing special texts
e.g $[$(date +%d-%m),25-12,${red}Happy ${white}Christmas!,]
.fi
.PP
* The \fBBash command tag $()\fR speaks for itself.
.br
Expand Down
3 changes: 3 additions & 0 deletions include/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ inline constexpr std::string_view AUTOCONFIG = R"#([config]
#
# Each part can have a tag or anything else.
# e.g $[$<user.name>,$(echo $USER),the name is correct,the name is NOT correct]
#
# This is useful when on some terminal or WM the detection can be different than others
# Or maybe even on holidays for printing special texts
# e.g $[$(date +%d-%m),25-12,${red}Happy ${white}Christmas!,]
# The Color tag ${} is used for printing the text of a certain color.
# e.g "${red}hello world" will indeed print "hello world" in red (or the color you set in the variable)
Expand Down

0 comments on commit 333d0e9

Please sign in to comment.