nixos/modules/shell.nix

36 lines
865 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";
};
initExtraFirst = ''
export EDITOR=emacs\ -nw
source ~/.p10k.zsh
'';
enableCompletion = true;
# autosuggestions.enable = true;
zplug = {
enable = true;
plugins = [
{ name = "zsh-users/zsh-autosuggestions"; } # Simple plugin installation
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; } # Installations with additional options. For the list of options, please refer to Zplug README.
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
];
};
};
}