Skip to content

Commit

Permalink
README: Updating the configuration section
Browse files Browse the repository at this point in the history
Replaced the two-method reconfiguration with the new single-method
approach.
  • Loading branch information
pazdera committed May 10, 2014
1 parent f68e606 commit 81e85b4
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,15 @@ top of the user and system config files.
```ruby
require "tco"

tco_conf = Tco::config

tco_conf["names"]["white"] = "#000"
tco_conf["styles"]["pass"] = {
"fg" => "#000",
"bg" => "#00ff00",
"bright" => false,
"underline" => false,
}

Tco::reconfigure tco_conf
Tco::configure do |tco_conf|
tco_conf.names["white"] = "#000"
tco_conf.styles["pass"] = {
"fg" => "#000",
"bg" => "#00ff00",
"bright" => false,
"underline" => false,
}
end
```

Apart from that, the library then contains a few more advanced things which
Expand Down Expand Up @@ -215,7 +213,8 @@ configuration file would look like this:
```yaml
# This is unnecessary (extended palette is enabled by default).
# However, you can set this to ansi if you use an older terminal.
palette: "extended"
options:
palette: "extended"

colour_values:
"@0": "#3b3b3b"
Expand Down

0 comments on commit 81e85b4

Please sign in to comment.