From 96f1610972334f200465ffbc2f7c5e808e6bd6ea Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Fri, 19 Jul 2024 02:49:51 -0400 Subject: [PATCH] Added hostname to prompt --- modules/home-manager/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index c38ca47..121a381 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -78,8 +78,10 @@ in initExtra = (if enableDevelopmentKit then '' export MAMBA_ROOT_PREFIX="$HOME/.local/micromamba" source <(micromamba shell hook --root-prefix=$MAMBA_ROOT_PREFIX) - '' else - ""); + export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' + '' else '' + export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' + ''); }; zsh.oh-my-zsh = { enable = true;