2024-03-28 12:17:49 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
2024-05-28 21:34:07 -08:00
|
|
|
# programs.bash = {
|
|
|
|
# enable = true;
|
|
|
|
# shellAliases = {
|
|
|
|
# ls = "eza";
|
|
|
|
# tree = "eza -T";
|
|
|
|
# };
|
|
|
|
# initExtra = ''
|
|
|
|
# export EDITOR=emacs\ -nw
|
|
|
|
# '';
|
|
|
|
# };
|
|
|
|
programs.zsh = {
|
2024-03-28 12:17:49 -08:00
|
|
|
enable = true;
|
2024-04-07 19:13:37 -08:00
|
|
|
shellAliases = {
|
2024-04-12 08:05:18 -08:00
|
|
|
ls = "eza";
|
2024-04-17 21:26:43 -08:00
|
|
|
tree = "eza -T";
|
2024-05-29 14:39:59 -08:00
|
|
|
ping = "ping -c 4";
|
|
|
|
ip = "ip -c";
|
2024-04-07 19:13:37 -08:00
|
|
|
};
|
2024-05-28 21:34:07 -08:00
|
|
|
initExtraFirst = ''
|
|
|
|
export EDITOR=emacs\ -nw
|
|
|
|
source ~/.p10k.zsh
|
2024-03-28 12:17:49 -08:00
|
|
|
'';
|
2024-05-28 21:34:07 -08:00
|
|
|
enableCompletion = true;
|
|
|
|
# autosuggestions.enable = true;
|
|
|
|
zplug = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
2024-05-29 14:39:59 -08:00
|
|
|
{ name = "zsh-users/zsh-autosuggestions"; }
|
2024-05-28 21:34:07 -08:00
|
|
|
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
|
2024-05-29 14:39:59 -08:00
|
|
|
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
|
|
|
{ name = "zsh-users/zsh-completions"; }
|
|
|
|
];
|
2024-05-28 21:34:07 -08:00
|
|
|
};
|
2024-03-28 12:17:49 -08:00
|
|
|
};
|
2024-05-31 20:16:02 -08:00
|
|
|
programs.zoxide = {
|
|
|
|
enable = true;
|
|
|
|
options = [ "--cmd cd" ];
|
|
|
|
};
|
2024-03-28 12:17:49 -08:00
|
|
|
}
|