Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of a simple bash function #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ usage: alacritty-colorscheme [-c configuration file] [-C colorscheme directory]
ln -s "$DEST/themes" "$HOME/.config/alacritty/colors"
```

- To quickly choose and change the colorscheme, you can combine the `alacritty-colorscheme` command with `fd` and `fzf`. Put the function below into your `$HOME/.bashrc` or `$HOME/.zshrc`
```bash
# ALACRITTY colorscheme changer
function set_colorscheme() {
ALACRITTY_DIR=$HOME/.config/alacritty
alacritty-colorscheme -V -c $ALACRITTY_DIR/alacritty.yml apply $(fd . "$ALACRITTY_DIR/colors/themes" --type file --extension yaml --extension yml | fzf)
}
```
Just make sure you have [`fd`](https://github.com/sharkdp/fd) and [`fzf`](https://github.com/junegunn/fzf).

## Sync with vim/neo-vim

If you are using base16 colorschemes from
Expand Down