nicks-nix-config/modules/zsh.nix

51 lines
869 B
Nix
Raw Normal View History

2022-10-09 15:15:30 -07:00
{ config, pkgs, lib, ... }:
let
in
{
programs.zsh = {
enable = true; # technically also enabled in user shell
dotDir = ".config/zsh";
initExtraFirst = ''
pfetch
2023-01-08 19:31:04 -08:00
fortune
2022-10-09 15:15:30 -07:00
'';
initExtra = ''
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
'';
2022-10-09 15:15:30 -07:00
autocd = true;
history = {
path = "$HOME/.histfile";
size = 2000;
share = true;
ignoreDups = false;
};
plugins = [
{
name = "powerline10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
2022-10-09 15:15:30 -07:00
}
];
2022-11-08 19:20:43 -08:00
shellAliases = {
2023-02-26 18:03:06 -08:00
cat = "bat";
doom = "~/.emacs.d/bin/doom";
2022-11-08 19:20:43 -08:00
ls = "exa";
2022-12-10 22:14:12 -08:00
gust = "/home/nixolas/Documents/Gust/target/debug/gust";
2023-01-09 20:26:13 -08:00
rm = "rmtrash";
2022-11-08 19:20:43 -08:00
};
2022-10-09 15:15:30 -07:00
};
home.file.".p10k.zsh" = {
source = ../rsrcs/.p10k.zsh;
};
}