summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md9
-rw-r--r--colorschemes/registry.go11
2 files changed, 13 insertions, 7 deletions
diff --git a/README.md b/README.md
index 5345005..31e31ea 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,15 @@ There is also a build-from-source package:
yay -S gotop
```
+### Gentoo
+
+`gotop` is available on [guru](https://gitweb.gentoo.org/repo/proj/guru.git) overlay. It's currently required to add this overlay in order to install `gotop`:
+
+```shell
+sudo layman -a guru
+sudo emerge gotop
+```
+
### OSX
gotop can be installed with [Homebrew](https://brew.sh/); you'll need to tap the recipe. If you'd previously tapped cjbassi's recipe, you'll want to untap that first. The old version of gotop is also included in Homebrew's core library, and that will always be chosen before any taps, so you have to specify the tap specifically.
diff --git a/colorschemes/registry.go b/colorschemes/registry.go
index 8f86491..b6263c9 100644
--- a/colorschemes/registry.go
+++ b/colorschemes/registry.go
@@ -18,14 +18,11 @@ func init() {
}
func FromName(confDir configdir.ConfigDir, c string) (Colorscheme, error) {
- cs, ok := registry[c]
- if !ok {
- cs, err := getCustomColorscheme(confDir, c)
- if err != nil {
- return cs, err
- }
+ if cs, ok := registry[c]; ok {
+ return cs, nil
}
- return cs, nil
+ cs, err := getCustomColorscheme(confDir, c)
+ return cs, err
}
func register(name string, c Colorscheme) {