Add colorscheme section to readme

pull/38/head
Miguel Mota 5 years ago
parent 1308bec565
commit bdcde19050
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -36,7 +36,13 @@ In action
- [Installing](#installing)
- [Updating](#updating)
- [Getting started](#getting-started)
- [Navigation](#navigation)
- [Favorites](#favorites)
- [Portfolio](#portfolio)
- [Search](#search)
- [Base Currency](#base-currency)
- [Shortcuts](#shortcuts)
- [Themes](#themes)
- [Config](#config)
- [FAQ](#faq)
- [Mentioned in](#mentioned-in)
@ -57,6 +63,7 @@ In action
- Save and view favorite coins
- Portfolio tracking of holdings
- 256-color support
- Custom colorschemes
- Help menu
- Offline cache
- Supports multiple coin stat APIs
@ -266,7 +273,7 @@ $ cointop
- To search for coins, press <kbd>/</kbd> then enter the search query and hit <kbd>Enter</kbd>
### Changing currency
### Base Currency
- To change the currency, press <kbd>c</kbd> then enter the character next to the desired currency
@ -342,6 +349,34 @@ Key|Action
<kbd>}</kbd>|Last chart date range|
<kbd>{</kbd>|First chart date range|
## Themes
cointop supports custom themes (colorschemes).
<img src="https://user-images.githubusercontent.com/168240/59164231-165b9c80-8abf-11e9-98cf-915ee37407ff.gif" alt="cointop colorschemes" width="880" />
To use standard themes, clone the [colors](https://github.com/cointop-sh/colors) repository into config directory:
```bash
$ cd ~/.cointop
$ git clone git@github.com:cointop-sh/colors.git
```
Then edit your config `~/.cointop/config.toml` and set the colorscheme:
```toml
colorscheme = "<COLORSCHEME_NAME>"
```
For example, if you have `matrix.toml` in `colors/` then the `colorscheme` property should be set to:
```toml
colorscheme = "matrix"
```
To create your own colorscheme, simply copy an existing colorscheme, rename it, and customize the colors.
## Config
The first time you run cointop, it'll create a config file in:
@ -525,6 +560,16 @@ Frequently asked questions:
Options are: `coinmarketcap`, `coingecko`
- Q: How do I change the theme (colorscheme)?
- A: You can use the `--colorscheme` flag, eg. `--colorscheme matrix`. You can also set the colorscheme choice in the config file.
```toml
colorscheme = "<COLORSCHEME_NAME>"
```
For more instructions, visit the [colors](https://github.com/cointop-sh/colors) repository.
- Q: Where is the config file located?
- A: The default configuration file is located under `~/.cointop/config.toml`
@ -611,6 +656,10 @@ Frequently asked questions:
- A: The yellow asterisk or star means that you've selected that coin to be a favorite.
- Q: My favorites aren't being saved?
- A: Try running cointop with `--clean` flag to clear the cache which might be causing the problem.
- Q: How do I add a coin to my portfolio?
- Press <kbd>e</kbd> on the highlighted coin to enter holdings and add to your portfolio.
@ -861,4 +910,4 @@ Thank you for tips! 🙏
## License
Released under the [Apache 2.0](./LICENSE.md) license.
Released under the [Apache 2.0](./LICENSE) license.

@ -1,22 +0,0 @@
class Cointop < Formula
desc "Interactive terminal based UI application for tracking cryptocurrencies"
homepage "https://cointop.sh"
url "https://github.com/miguelmota/cointop/archive/1.0.1.tar.gz"
sha256 "bb5450c734a2d0c54a1dc7d7f42be85eb2163c03e6d3dc1782d74b54a8cbfa69"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
# (buildpath/"src/github.com/miguelmota/cointop").install buildpath.children
system "go", "get", "-u", "github.com/miguelmota/cointop"
cd "src/github.com/miguelmota/cointop" do
system "go", "build", "-o", "#{bin}/cointop"
prefix.install_metafiles
end
end
test do
system "TERM=screen-256color #{bin}/cointop -test"
end
end
Loading…
Cancel
Save