diff --git a/home.nix b/home.nix index 03c84f1..da20ee7 100644 --- a/home.nix +++ b/home.nix @@ -47,6 +47,33 @@ enable = true; lfs.enable = true; }; + + programs.bash = { + enable = true; + historyIgnore = [ "l" "ls" "ll" "cd" "exit" ]; + historyControl = [ "erasedups" ]; + shellAliases = { + grep = "grep --color=auto"; + ".." = "cd .."; + }; + initExtra = '' + # Custom colored bash prompt + PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + ''; + profileExtra = '' + # Include user's private bin if present + if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" + fi + ''; + }; + + + programs.starship = { + enable = true; + enableBashIntegration = true; + }; + # This value determines the home Manager release that your # configuration is compatible with. This helps avoid breakage # when a new home Manager release introduces backwards