Skip to content

Commit f5f737e

Browse files
committed
perf(home): use home*.nix to config vivid instead in zshrc
1 parent 94c2bb5 commit f5f737e

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

conf.d/zsh/exports.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export ZSH_COMPDUMP="$XDG_CACHE_HOME"/zsh/compdump
5454

5555
# Setup terminal, and turn on colors
5656
[ "$TMUX" != "" ] && export TERM="tmux-256color"
57-
export CLICOLOR=1
57+
export CLICOLOR=1 # for BSD-based distros, like macOS
5858
export LSCOLORS=Gxfxcxdxbxegedabagacad # for BSD-based distros, like macOS
59-
export LS_COLORS="$(vivid generate catppuccin-mocha)" # for GNU-based distros
59+
# export LS_COLORS="$(vivid generate catppuccin-mocha)" # for GNU-based distros
6060

6161

6262
# Enable color in grep

home-darwin.nix

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ with lib; {
133133
tree-sitter
134134
xh
135135
zoxide
136-
vivid
137136
hwatch
138137
];
139138

@@ -591,6 +590,29 @@ with lib; {
591590
};
592591
};
593592

593+
vivid = {
594+
enable = true;
595+
enableZshIntegration = true;
596+
filetypes = {
597+
text = {
598+
licenses = [
599+
"LICENCE"
600+
"COPYRIGHT"
601+
];
602+
special = [
603+
"CHANGELOG.md"
604+
"CODE_OF_CONDUCT.md"
605+
"CONTRIBUTING.md"
606+
];
607+
todo = [
608+
"TODO.md"
609+
"TODO.txt"
610+
];
611+
};
612+
};
613+
activeTheme = "tokyonight-moon";
614+
};
615+
594616
zsh = {
595617
enable = true;
596618
dotDir = "${config.xdg.configHome}/zsh";

home.nix

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ with lib; {
135135
tree-sitter
136136
xh
137137
zoxide
138-
vivid
139138
hwatch
140139
];
141140

@@ -589,6 +588,29 @@ with lib; {
589588
};
590589
};
591590

591+
vivid = {
592+
enable = true;
593+
enableZshIntegration = true;
594+
filetypes = {
595+
text = {
596+
licenses = [
597+
"LICENCE"
598+
"COPYRIGHT"
599+
];
600+
special = [
601+
"CHANGELOG.md"
602+
"CODE_OF_CONDUCT.md"
603+
"CONTRIBUTING.md"
604+
];
605+
todo = [
606+
"TODO.md"
607+
"TODO.txt"
608+
];
609+
};
610+
};
611+
activeTheme = "tokyonight-moon";
612+
};
613+
592614
zsh = {
593615
enable = true;
594616
dotDir = "${config.xdg.configHome}/zsh";

0 commit comments

Comments
 (0)