From 3d8e938960b32c1d159f3da0082344e6af952280 Mon Sep 17 00:00:00 2001 From: Sean Kovacs Date: Tue, 2 Dec 2025 09:53:47 -0500 Subject: [PATCH] update fish prompt --- home/terminal/fish/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/terminal/fish/default.nix b/home/terminal/fish/default.nix index 3d88818..8a8334a 100644 --- a/home/terminal/fish/default.nix +++ b/home/terminal/fish/default.nix @@ -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";