From 4b072507292130f8ad00123df3f486904aa2e069 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Tue, 25 May 2021 08:11:18 +0200 Subject: [PATCH] Added zsh prompt --- .../.oh-my-zsh/custom/themes/tywr.zsh-theme | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dotfiles/.oh-my-zsh/custom/themes/tywr.zsh-theme diff --git a/dotfiles/.oh-my-zsh/custom/themes/tywr.zsh-theme b/dotfiles/.oh-my-zsh/custom/themes/tywr.zsh-theme new file mode 100644 index 0000000..f065620 --- /dev/null +++ b/dotfiles/.oh-my-zsh/custom/themes/tywr.zsh-theme @@ -0,0 +1,17 @@ +# Based on https://github.com/TyWR/Nord-zsh + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[white]%} on %{$fg_bold[yellow]%}\xee\x82\xa0 " +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_bold[yellow]%}" +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$reset_color%}%{$fg_bold[red]%}*%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="" + +conda_env() { + if [ ! -z "$CONDA_PREFIX" ] + then + print -n " %{$fg_bold[white]%}on %{$fg_bold[blue]%}ꓛ ${CONDA_PREFIX##*/}%{$reset_color%}" + fi +} + +PROMPT=' + %{$fg_bold[green]%}%3c%{$reset_color%}$(git_prompt_info)$(conda_env) + %{$fg_bold[blue]%}${(%):-%m} ➜ %{$reset_color%}'