Compare commits

..

2 Commits

Author SHA1 Message Date
Azalea (on HyDEV-Daisy) 2c8261dc9a [F] Make config path only when it's needed 2022-04-25 14:38:59 -04:00
Azalea (on HyDEV-Daisy) 3219547c92 [U] Update changelog 2022-04-25 14:06:51 -04:00
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -48,6 +48,14 @@ Feel free to experiment with it!
* [ ] Add interactive configurator for adjusting brightness
* [ ] Add configuration to emphasize certain parts of the original ASCII art (to make icons like Fedora and Ubuntu look nicer)
### 1.0.7
* Fix: Make config path not on init but when it's actually needed.
### 1.0.6
* Remove `hypy_utils` dependency to make packaging easier.
### 1.0.5
* Fix terminal emulator detection ([PR #2](https://github.com/hykilpikonna/hyfetch/pull/2))
+2 -2
View File
@@ -13,8 +13,7 @@ from .presets import PRESETS, ColorProfile
from .serializer import json_stringify
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
CONFIG_PATH.parent.mkdir(exist_ok=True, parents=True)
VERSION = '1.0.6'
VERSION = '1.0.7'
@dataclass
@@ -23,6 +22,7 @@ class Config:
mode: AnsiMode
def save(self):
CONFIG_PATH.parent.mkdir(exist_ok=True, parents=True)
CONFIG_PATH.write_text(json_stringify(self), 'utf-8')