mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
removed oh-my-posh/ use oh-my-zsh with some plugins + add a custom cat using colorize plugin
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user