Ensure the new terminal prompt is not overriden by nix

This commit is contained in:
Curt Spark 2024-11-25 11:27:14 +00:00
parent 09da381e2a
commit f5b04720ae
1 changed files with 2 additions and 3 deletions

View File

@ -314,9 +314,6 @@ fi
# Dotnet path not found fix
DOTNET_ROOT = "${pkgs.dotnet-sdk}";
# Nicer terminal prompt
PS1="\[\e[0;36m\]\u\[\e[0m\]@\[\e[0;33m\]\h\[\e[0m\]:\[\e[0;35m\]\w\[\e[0m\] \$ ";
};
programs.bash = {
@ -325,6 +322,8 @@ fi
# bashrcExtra = "fastfetch";
initExtra = ''
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
# Nicer terminal prompt
export PS1="\[\e[0;36m\]\u\[\e[0m\]@\[\e[0;33m\]\h\[\e[0m\]:\[\e[0;35m\]\w\[\e[0m\] \$ ";
eval "$(zoxide init bash --cmd builtin-z)" # Initialise zoxide as terminal command builtin-z
([[ -z $(tty) ]] && nvim +terminal) || fastfetch
'';