mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 18:30:46 +02:00
32 lines
561 B
Nix
32 lines
561 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
autosuggestion.enable = true;
|
|
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";
|
|
ll = "ls -alF";
|
|
la = "ls -A";
|
|
l = "ls -CF";
|
|
ls = "ls -hA -s --color";
|
|
cat = "custom-cat";
|
|
pomodoro = "kitty -e 'tomato'";
|
|
librewolf = "kitty --name \"Select LibreWolf profile\" --hold custom-librewolfprofiles";
|
|
};
|
|
};
|
|
}
|