{

  programs.bash = {

    enable = true;
    historyControl = [ "ignoredups" ];
    historySize = 1000000;
    historyFileSize = 1000000;

    initExtra = ''
             eval "$(starship init bash)"
             eval "$(pandoc --bash-completion)"
      #      export PATH="$XDG_CONFIG_HOME/emacs/bin:$PATH"
             export PATH="$HOME/.emacs.d/bin:$PATH"
             export GTK_IM_MODULE="cedilla"
    '';

    shellAliases = {
      la = "exa -la --icons --grid";
      ls = "exa --icons";
      cat = "bat";
      gedit = "gnome-text-editor";
      amr-nixos-home-desktop =
        "sudo nixos-rebuild switch --flake ~/nixos-flake#home-desktop";
      amr-nixos-hp-laptop =
        "sudo nixos-rebuild switch --flake ~/nixos-flake#hp-laptop --impure";
      amr-nixos-usp-desktop =
        "sudo nixos-rebuild switch --flake ~/nixos-flake#usp-desktop --impure";
      amr-nixos-dell-laptop =
        "sudo nixos-rebuild switch --flake ~/nixos-flake#dell-laptop --impure";
      amr-nixos-cleanup =
        "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
      amr-nixos-thinkpad =
        "sudo nixos-rebuild switch --flake ~/nixos-flake#thinkpad --impure";

    };

  };

}
