From 073072f861024753f1fcb3f3716eabbd2c8622ac Mon Sep 17 00:00:00 2001 From: Felix Delattre Date: Thu, 9 Mar 2023 19:41:45 +0100 Subject: [PATCH] Add .oh-my-zsh/custom/prompt.zsh --- dot_oh-my-zsh/custom/prompt.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dot_oh-my-zsh/custom/prompt.zsh diff --git a/dot_oh-my-zsh/custom/prompt.zsh b/dot_oh-my-zsh/custom/prompt.zsh new file mode 100644 index 0000000..1b68f7c --- /dev/null +++ b/dot_oh-my-zsh/custom/prompt.zsh @@ -0,0 +1,6 @@ +# removes user@hostname from agnoster prompt +prompt_context() { + if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then + prompt_segment black default "%(!.%{%F{yellow}%}.)" + fi +} \ No newline at end of file