Files
nixos-conf/modules/shell.nix
T
2026-08-07 15:39:19 +02:00

76 lines
1.6 KiB
Nix

{
programs.fish = {
enable = true;
interactiveShellInit = ''
nitch
set -g fish_key_bindings fish_hybrid_key_bindings
set fish_greeting
'';
shellAliases = {
ls = "eza -al --no-time --no-user --no-permissions --no-filesize";
ll = "eza -la";
cat = "bat";
cp = "cp -v";
ff = "fastfetch";
grep = "grep -i";
rg = "rg -i";
hyprland = "start-hyprland";
mv = "mv -v";
n = "nvim";
py = "uv run";
r = "rsync -avh --info=progress2";
rm = "gomi";
ssh = "kitten ssh";
nd = "nix develop";
df = "df -h -x tmpfs -x devtmpfs -x squashfs -x overlay -x efivarfs";
};
};
programs.zoxide = {
enable = true;
enableFishIntegration = true;
options = [ "--cmd cd" ];
};
programs.eza = {
enable = true;
enableFishIntegration = true;
git = true;
icons = "always";
extraOptions = [
"-1"
];
};
programs.fzf.enable = true;
programs.fzf.enableFishIntegration = true;
programs.ripgrep.enable = true;
programs.fd.enable = true;
programs.aria2.enable = true;
programs.btop.enable = true;
programs.fastfetch.enable = true;
programs.yazi.enable = true;
programs.yazi.enableFishIntegration = true;
programs.lazygit.enable = true;
programs.lazygit.enableFishIntegration = true;
programs.tmux.enable = true;
programs.bat = {
enable = true;
config = {
paging = "never";
style = "numbers,changes,rule";
theme = "TwoDark";
};
};
home.sessionVariables = {
EDITOR = "nvim";
};
}