aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/nixos/bash.nix
blob: 3b57f50b292a5fc50c0388e799205673326bc53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  cfg = config.collinux.terminal.shells.bash;
in
  lib.mkIf cfg.enable {
    environment.etc = {
      "bashrc.local".text = ''
        if [ -s "''${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc" ]; then
          . "''${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc"
        fi

         export HISTFILE="$XDG_STATE_HOME"/bash/history
         alias wget="wget --hsts-file /dev/null"
      '';
    };
  }