system/pkgs/shell/bash.nix
2024-11-01 09:04:24 -07:00

29 lines
876 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ pkgs, myAliases, ...}:
{
# To copy the Oh My Zsh configuration file to your home directory, run the following command:
# $ cp -v $(nix-env -q out-path oh-my-zsh | cut -d -f3)/share/oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
home.packages = with pkgs; [
bashInteractive
];
programs.bash = {
enable = true;
# package = pkgs.bashInteractive;
enableCompletion = true;
historySize = 10000;
shellOptions = [];
shellAliases = myAliases;
historyIgnore = [ "exit" "clear" "sl" "pwd" ];
historyControl = [ "ignoredups" ];
historyFileSize = 20000;
sessionVariables = {
EDITOR = "lvim";
PATH = "$HOME/bin:$HOME/.local/bin:$PATH";
};
initExtra = "
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval $(SHELL=/bin/sh lesspipe)
";
};
}