42 lines
890 B
Nix
42 lines
890 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
# programs.bash = {
|
|
# enable = true;
|
|
# shellAliases = {
|
|
# ls = "eza";
|
|
# tree = "eza -T";
|
|
# };
|
|
# initExtra = ''
|
|
# export EDITOR=emacs\ -nw
|
|
# '';
|
|
# };
|
|
programs.zsh = {
|
|
enable = true;
|
|
shellAliases = {
|
|
ls = "eza";
|
|
tree = "eza -T";
|
|
ping = "ping -c 4";
|
|
ip = "ip -c";
|
|
};
|
|
initExtraFirst = ''
|
|
export EDITOR=emacs\ -nw
|
|
source ~/.p10k.zsh
|
|
'';
|
|
enableCompletion = true;
|
|
# autosuggestions.enable = true;
|
|
zplug = {
|
|
enable = true;
|
|
plugins = [
|
|
{ name = "zsh-users/zsh-autosuggestions"; }
|
|
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
|
|
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
|
{ name = "zsh-users/zsh-completions"; }
|
|
];
|
|
};
|
|
};
|
|
programs.zoxide = {
|
|
enable = true;
|
|
options = [ "--cmd cd" ];
|
|
};
|
|
}
|