Add .pre-commit-config.yaml (#2)

Update README.md
This commit is contained in:
DeadNews
2022-09-13 11:24:17 +02:00
committed by GitHub
parent 550e5a2f11
commit 53516bd5a1
4 changed files with 46 additions and 15 deletions

21
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,21 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
additional_dependencies:
- mdformat-toc
- mdformat-gfm
- mdformat-black

View File

@@ -2,7 +2,7 @@
![mc-onedark](https://raw.githubusercontent.com/DeadNews/mc-onedark/main/preview/Screenshot_20201219_204641.png) ![mc-onedark](https://raw.githubusercontent.com/DeadNews/mc-onedark/main/preview/Screenshot_20201219_204641.png)
# Theme variants ## Theme variants
The mc OneDark theme comes in two flavors, an 8/16 color option (`onedark.ini`) and a 16M color option (`onedark16M.ini`). The 8/16 color version is entirely dependent on having installed the relevant OneDark theme for your terminal too as it uses the color palette fixed by your terminal. The mc OneDark theme comes in two flavors, an 8/16 color option (`onedark.ini`) and a 16M color option (`onedark16M.ini`). The 8/16 color version is entirely dependent on having installed the relevant OneDark theme for your terminal too as it uses the color palette fixed by your terminal.
@@ -10,22 +10,33 @@ See [Konsole](https://store.kde.org/p/1225908/) color scheme for example.
The 16M color version can be used independently of any terminal color scheme, but requires true color support in the terminal. The 16M color version can be used independently of any terminal color scheme, but requires true color support in the terminal.
# Installation ## Installation
Copy files from `./skins` to `~/.local/share/mc/skins` \ - Copy files from `./skins` to `~/.local/share/mc/skins`
Copy files from `./config` to `~/.config/mc/` (optional) - Copy files from `./config` to `~/.config/mc/` (optional)
## Activating ways
# Activating theme - Choose the skin through the mc UI with:
Option 1: edit `~/.config/mc/ini` and add `skin=onedark`: \ ```sh
`sed -i 's|\(^skin=\).*$|\1onedark|' ~/.config/mc/ini` # F9 > Options > Appearance
```
Option 2: choose the skin through the mc UI with: \ - Edit `~/.config/mc/ini` and add `skin=onedark`:
`F9 > Options > Appearance`
Option 3: run mc with specific skin: \ ```sh
`mc -S onedark` sed -i 's|\(^skin=\).*$|\1onedark|' ~/.config/mc/ini
```
Option 4: add `export MC_SKIN=onedark` to the initialization file of your shell (e.g., `~/.bashrc` or `~/.zshrc`): \ - Run mc with specific skin:
`echo "export MC_SKIN=onedark" >> ~/.zshrc`
```sh
mc -S onedark
```
- Add `export MC_SKIN=onedark` to the initialization file of your shell (e.g., `~/.bashrc` or `~/.zshrc`):
```sh
echo "export MC_SKIN=onedark" >> ~/.zshrc
```

View File

@@ -47,4 +47,3 @@
[config] [config]
extensions=ini;conf extensions=ini;conf

View File

@@ -65,7 +65,7 @@
core = red; core = red;
temp = gray; temp = gray;
archive = magenta; archive = magenta;
doc = doc =
source = brightcyan; source = brightcyan;
media = green; media = green;
graph = cyan; graph = cyan;