mirror of
https://github.com/zoriya/flake.git
synced 2026-06-03 10:57:13 +00:00
Use catppuccin for bat and alias it to cat
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
ls = "exa";
|
ls = "exa";
|
||||||
lt = "exa --tree";
|
lt = "exa --tree";
|
||||||
tree = "exa --tree";
|
tree = "exa --tree";
|
||||||
|
cat = "bat -pp";
|
||||||
|
|
||||||
# git stuff
|
# git stuff
|
||||||
s = "git status";
|
s = "git status";
|
||||||
@@ -73,7 +74,10 @@
|
|||||||
# Misc
|
# Misc
|
||||||
dc = "docker-compose";
|
dc = "docker-compose";
|
||||||
dcd = "docker-compose -f (../)#docker-compose.dev.yml";
|
dcd = "docker-compose -f (../)#docker-compose.dev.yml";
|
||||||
op = if pkgs.stdenv.isLinux then "xdg-open" else "open";
|
op =
|
||||||
|
if pkgs.stdenv.isLinux
|
||||||
|
then "xdg-open"
|
||||||
|
else "open";
|
||||||
py = "python3 2> /dev/null || , python3";
|
py = "python3 2> /dev/null || , python3";
|
||||||
jctl = "sudo journalctl -n 1000 -fu";
|
jctl = "sudo journalctl -n 1000 -fu";
|
||||||
sloc = "scc";
|
sloc = "scc";
|
||||||
@@ -266,9 +270,25 @@
|
|||||||
|
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
themes = {
|
||||||
|
catppuccin-latte = {
|
||||||
|
src = pkgs.catppuccin.override {
|
||||||
|
variant = "latte";
|
||||||
|
themeList = ["bat"];
|
||||||
|
};
|
||||||
|
file = "bat/Catppuccin Latte.tmTheme";
|
||||||
|
};
|
||||||
|
catppuccin-mocha = {
|
||||||
|
src = pkgs.catppuccin.override {
|
||||||
|
variant = "mocha";
|
||||||
|
themeList = ["bat"];
|
||||||
|
};
|
||||||
|
file = "bat/Catppuccin Mocha.tmTheme";
|
||||||
|
};
|
||||||
|
};
|
||||||
config = {
|
config = {
|
||||||
theme-light = "GitHub";
|
theme-light = "catppuccin-latte";
|
||||||
theme-dark = "base16";
|
theme-dark = "catppuccin-mocha";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user