Ensure the new terminal prompt is not overriden by nix
This commit is contained in:
parent
09da381e2a
commit
f5b04720ae
|
|
@ -314,9 +314,6 @@ fi
|
||||||
|
|
||||||
# Dotnet path not found fix
|
# Dotnet path not found fix
|
||||||
DOTNET_ROOT = "${pkgs.dotnet-sdk}";
|
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 = {
|
programs.bash = {
|
||||||
|
|
@ -325,6 +322,8 @@ fi
|
||||||
# bashrcExtra = "fastfetch";
|
# bashrcExtra = "fastfetch";
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
. "$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
|
eval "$(zoxide init bash --cmd builtin-z)" # Initialise zoxide as terminal command builtin-z
|
||||||
([[ -z $(tty) ]] && nvim +terminal) || fastfetch
|
([[ -z $(tty) ]] && nvim +terminal) || fastfetch
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue