diff --git a/dots/.bashrc b/dots/.bashrc index d26c6a2..49bf894 100644 --- a/dots/.bashrc +++ b/dots/.bashrc @@ -30,13 +30,6 @@ done [ -f "$HOME/.bashrc.d/prompt" ] && . "$HOME/.bashrc.d/prompt" # }}} -# History {{{ -export HISTSIZE=999999 -export HISTFILESIZE= # Unlimited -export HISTCONTROL=ignoreboth:erasedups -export HISTIGNORE=" *:clear:l:ls:cd" # Omit commands from history (e.g. those prepended with space) -# }}} - # Man pages {{{ # See `:h :Man` in NeoVim export MANWIDTH=80 diff --git a/home/modules/shell/bash.nix b/home/modules/shell/bash.nix index 962e18d..4697654 100644 --- a/home/modules/shell/bash.nix +++ b/home/modules/shell/bash.nix @@ -37,6 +37,22 @@ in programs.bash = { enable = true; enableCompletion = true; + + historySize = 999999; + historyFileSize = -1; # unlimited + historyControl = [ + "ignoreboth" + "erasedups" + ]; + # omit commands from history (e.g. those prepended with space) + historyIgnore = [ + " *" + "clear" + "l" + "ls" + "cd" + ]; + initExtra = '' for f in /home/${username}/.bashrc.d/*; do [ -f "$f" ] && source "$f"