53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ config, configPath, ... }:
|
|
{
|
|
programs = {
|
|
zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
historySubstringSearch.enable = true;
|
|
|
|
shellAliases = {
|
|
cd = "z";
|
|
cat = "bat";
|
|
catp = "bat -p";
|
|
fk = "thefuck";
|
|
fu = "thefuck";
|
|
fuck = "thefuck";
|
|
grep = "grep --color=auto";
|
|
lg = "lazygit";
|
|
ll = "eza -la";
|
|
ls = "eza --color=auto";
|
|
lt = "eza --tree";
|
|
open = "xdg-open";
|
|
locate = "sudo plocate";
|
|
tulpn = "sudo netstat -tulpn";
|
|
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos#$(uname -n)";
|
|
};
|
|
|
|
envExtra = ''
|
|
#eval $(thefuck --alias)
|
|
'';
|
|
|
|
profileExtra = ''
|
|
export SSH_AUTH_SOCK=~/.1password/agent.sock
|
|
'';
|
|
|
|
initContent = ''
|
|
fastfetch
|
|
'';
|
|
|
|
history = {
|
|
size = 10000;
|
|
path = "${config.xdg.dataHome}/zsh/history";
|
|
};
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|