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 = ''
|
2023-01-06 22:17:49 -08:00
|
|
|
pfetch
|
2023-01-08 19:31:04 -08:00
|
|
|
fortune
|
2022-10-09 15:15:30 -07:00
|
|
|
'';
|
|
|
|
|
2022-10-11 16:22:24 -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;
|
2022-10-11 16:22:24 -07:00
|
|
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
2022-10-09 15:15:30 -07:00
|
|
|
}
|
|
|
|
];
|
2022-11-08 19:20:43 -08:00
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
ls = "exa";
|
2022-12-10 22:14:12 -08:00
|
|
|
gust = "/home/nixolas/Documents/Gust/target/debug/gust";
|
2023-01-09 16:54:18 -08:00
|
|
|
rm = "trash-put";
|
2022-11-08 19:20:43 -08:00
|
|
|
};
|
2022-10-09 15:15:30 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
home.file.".p10k.zsh" = {
|
|
|
|
source = ../rsrcs/.p10k.zsh;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|