aboutsummaryrefslogtreecommitdiff
path: root/.local/share/oh-my-zsh
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-05 13:41:54 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-05 13:41:54 +0100
commit2abd0e0218ba60e9f0dad348a3c2243a3324e40c (patch)
treec9e9f8e9968d6e8b93b90b4bd97de68084c0a316 /.local/share/oh-my-zsh
parentcc249cec9ca858caf529ec4475ee750ff72ac4cc (diff)
mode: reload nvim colors live
Diffstat (limited to '.local/share/oh-my-zsh')
-rw-r--r--.local/share/oh-my-zsh/themes/loek.zsh-theme25
1 files changed, 16 insertions, 9 deletions
diff --git a/.local/share/oh-my-zsh/themes/loek.zsh-theme b/.local/share/oh-my-zsh/themes/loek.zsh-theme
index e8b1438..a126a10 100644
--- a/.local/share/oh-my-zsh/themes/loek.zsh-theme
+++ b/.local/share/oh-my-zsh/themes/loek.zsh-theme
@@ -1,12 +1,19 @@
-USER=""
-if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
- USER=" %m"
-fi
+INFO_COLOR=$'%{\e[90m%}' # bright gray
+SEPARATOR_COLOR=$'%{\e[30m%}' # normal gray
+RESET_COLOR=$'%{\e[0m%}'
-PROMPT='%{$fg[yellow]%}λ$USER %{$fg[green]%}%c %{$fg[yellow]%}-> $(git_prompt_info)$(hg_prompt_info)%{$reset_color%}'
+SEPARATOR="$SEPARATOR_COLOR -> "
-ZSH_THEME_GIT_PROMPT_PREFIX="λ %{$fg[blue]%}git %{$fg[red]%}"
-ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%} -> %{$reset_color%}"
-ZSH_THEME_HG_PROMPT_PREFIX="λ %{$fg[blue]%}hg %{$fg[red]%}"
-ZSH_THEME_HG_PROMPT_SUFFIX="%{$fg[yellow]%} -> %{$reset_color%}"
+PROMPT=""
+# only display hostname in prompt if connected over SSH
+[ -n "$SSH_CLIENT" ] && PROMPT+="$INFO_COLOR%m$SEPARATOR"
+PROMPT+="$INFO_COLOR%c$SEPARATOR" # working directory
+PROMPT+="$INFO_COLOR\$(git_prompt_info)\$(hg_prompt_info)" # git info (if in repo)
+PROMPT+="$RESET_COLOR"
+ZSH_THEME_GIT_PROMPT_PREFIX="${INFO_COLOR}git "
+ZSH_THEME_HG_PROMPT_PREFIX="${INFO_COLOR}hg "
+ZSH_THEME_GIT_PROMPT_SUFFIX="$SEPARATOR"
+ZSH_THEME_HG_PROMPT_SUFFIX="$SEPARATOR"
+
+# vim:ft=zsh