Something went wrong. Try again.
Personal configuration files
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{config, ...}: { config = { programs.bash = { enable = true;
historyControl = [ "ignoredups" "ignorespace" ]; historyFile = "${config.xdg.stateHome}/bash/history"; historyFileSize = 1000000; historySize = 1000000;
shellOptions = [ "checkwinsize" "failglob" "globstar" "histappend" "hostcomplete" ];
logoutExtra = builtins.readFile ./bash_logout;
profileExtra = # bash '' # Nix # Multi-user (daemon) installation . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh 2>/dev/null # Fedora . /etc/profile.d/nix-daemon.sh 2>/dev/null # Single-user installation . "$XDG_STATE_HOME/nix/profile/etc/profile.d/nix.sh" 2>/dev/null
# Make sure local binaries override everything export PATH="${config.xdg.binHome}:$PATH" '';
initExtra = # bash '' HISTTIMEFORMAT='%FT%T%z: '
# Source system bash files . "/etc/bash.bashrc" 2>/dev/null . "/etc/bashrc" 2>/dev/null
# Interpolated rather than using $XDG_CONFIG_HOME, which is exported # from .profile and so is not guaranteed to be set here. This module # always installs files into bash.d, so failglob cannot trip on it. for f in "${config.xdg.configHome}"/bash.d/*; do . "$f" done ''; };
xdg.configFile = { "bash.d/90-aliases.sh".source = ./90-aliases.sh; "bash.d/90-completion.sh".source = ./90-completion.sh; "bash.d/90-prompt.sh".source = ./90-prompt.sh; };
home.activation.createBashStateDir = config.lib.activation.mkDir "${config.xdg.stateHome}/bash"; };}