update fish prompt

This commit is contained in:
Sean Kovacs 2025-12-02 09:53:47 -05:00
commit e1f8d9d466
Signed by: sckova
GPG key ID: 00F325187C68651A

View file

@ -25,6 +25,8 @@
set -g fish_color_host 89b4fa
else if test (hostname) = "vm-aarch64"
set -g fish_color_host a6e3a1
else if test (uname) = "Darwin"
set -g fish_color_host f9e2af
end
set -l user_host (set_color $fish_color_user)"$USER"(set_color normal)"@"(set_color $fish_color_host)(prompt_hostname)(set_color normal)
@ -33,8 +35,10 @@
set -l git_info (fish_git_prompt)
echo -n -s "$user_host" " " "$nix_shell_info" "$cwd" "$git_info" "> "
echo -s "$user_host" " " "$cwd" "$git_info $nix_shell_info"
echo -n -s "> "
'';
# echo -n -s "$user_host" " " "$nix_shell_info" "$cwd" "$git_info" "> "
};
nix-shell = {
description = "Wrapper for nix-shell that runs fish by default";