removed oh-my-posh/ use oh-my-zsh with some plugins + add a custom cat using colorize plugin

This commit is contained in:
Tomas Rivera
2026-02-28 15:00:07 +01:00
parent 16b7251eb5
commit 101f0f282e
5 changed files with 32 additions and 5 deletions
-1
View File
@@ -6,5 +6,4 @@
enableZshIntegration = true;
useTheme = "gruvbox";
};
};
}
+14
View File
@@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
programs.zsh.oh-my-zsh = {
enable = true;
theme = "jonathan";
plugins = [
"aliases"
"alias-finder"
"colored-man-pages"
"colorize"
];
};
}
+14 -2
View File
@@ -4,7 +4,18 @@
programs.zsh = {
enable = true;
autosuggestion.enable = true;
initContent = "fastfetch\n";
initContent = ''
# Safe cat that uses colorize plugin ccat
custom-cat() {
if [[ -t 1 ]]; then
ccat "$@"
else
command cat "$@"
fi
}
fastfetch\n''
;
shellAliases = {
".." = "z ..";
grep = "rg";
@@ -12,6 +23,7 @@
la = "ls -A";
l = "ls -CF";
ls = "ls -hA -s --color";
};
cat = "custom-cat";
};
};
}