Skip to content

Commit

Permalink
docs(extras): Add docu for bat and delta (scottmckendry#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3m4st3r authored Jul 30, 2024
1 parent 68d7298 commit 659cc11
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ We've cooked up some wonderful extras to enhance your cyberdream experience. Mos
- **[Lazygit](extras/lazygit/)**
- **[Pywal](extras/pywal/)**
- **[Rio](extras/rio/)**
- **[Textmate/Bat/Sublime](extras/textmate/)**
- **[Textmate/Bat/Sublime/Delta](extras/textmate/)**
- **[Tilux](extras/tilux/)**
- **[Tmux](extras/tmux/)**
- **[Wezterm](extras/wezterm/)**
Expand Down
51 changes: 51 additions & 0 deletions extras/textmate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## Usage

### Bat

Create a bat config dir.

```sh
mkdir -p "$(bat --config-dir)/themes"
```

Download the cyberdream `.tmTheme` files into that directory.

Rebuild the bat themes cache.

```sh
bat cache --build
```

Create or use an existing config file.

```sh
# Show existing config file location.
bat --config-file
# or generate a new one
bat --generate-config-file
```

Add the theme to the config.

```conf
--theme="cyberdream"
```

See [Bat - Adding a new theme](https://github.com/sharkdp/bat?tab=readme-ov-file#adding-new-themes)
or [Bat - Configuration file](https://github.com/sharkdp/bat?tab=readme-ov-file#configuration-file)

### Delta

Prerequisite [Bat](#bat) theme.

Add the theme to your [delta configuration section](https://dandavison.github.io/delta/configuration.html) in your `~/.gitconfig`.

```gitconfig
[delta]
features = cyberdream

[delta "decorations"]
syntax-theme = cyberdream
```

See [delta](https://dandavison.github.io/delta/)

0 comments on commit 659cc11

Please sign in to comment.