From 87c58b3eb481b8874349ea42d872b1847c601edd Mon Sep 17 00:00:00 2001 From: Christian Ott Date: Mon, 28 Oct 2024 16:10:07 +0100 Subject: [PATCH] add starship to terminal --- home.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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