summaryrefslogtreecommitdiffstats
path: root/dot_oh-my-zsh
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-09-03 17:59:01 +0000
committerSanto Cariotti <santo@dcariotti.me>2025-09-03 17:59:01 +0000
commitd565ae6b521cf90b22b3b9bf3a617a9114770b9c (patch)
treeddb573cd40f001bfcf94e28a8119707419e53f65 /dot_oh-my-zsh
parent0170b225454f166701d9d493d579208d942fcf80 (diff)
Bump
Diffstat (limited to 'dot_oh-my-zsh')
-rw-r--r--dot_oh-my-zsh/themes/jon.zsh-theme14
1 files changed, 7 insertions, 7 deletions
diff --git a/dot_oh-my-zsh/themes/jon.zsh-theme b/dot_oh-my-zsh/themes/jon.zsh-theme
index e06f45d..a4ae1a3 100644
--- a/dot_oh-my-zsh/themes/jon.zsh-theme
+++ b/dot_oh-my-zsh/themes/jon.zsh-theme
@@ -28,7 +28,7 @@ git_branch_name() {
# Function to get git status symbols
git_prompt_status() {
local git_status=""
-
+
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
if [[ -n $(git ls-files --other --exclude-standard 2>/dev/null) ]]; then
git_status+="${ZSH_THEME_GIT_PROMPT_UNTRACKED}"
@@ -86,7 +86,7 @@ get_path_info() {
local git_root=$(git rev-parse --show-toplevel)
local git_dirname=$(basename "$git_root")
local path_within_repo="${PWD#$git_root}"
-
+
if [[ -z "$path_within_repo" ]]; then
# We're in the git root directory
echo "$git_dirname"
@@ -102,12 +102,12 @@ get_path_info() {
# Basic prompt
PROMPT='%{$fg_bold[black]%}[%*] ' # Show current time in HH:MM
-PROMPT+='%{$fg[yellow]%}%n%{$reset_color%}@%F{#D7005F}%m'
-if [[ "$PWD" != "$HOME" ]]; then
- PROMPT+='%{$fg_bold[black]%}:%{$fg[yellow]%}$(get_path_info) ' # Dynamic path display
-fi
+PROMPT+='%{%F{#fbc531}%}%n%{$reset_color%}@%F{#D7005F}%m'
+# if [[ "$PWD" != "$HOME" ]]; then
+ PROMPT+='%{$fg_bold[black]%}:%{%F{#fbc531}%}$(get_path_info) ' # Dynamic path display
+# fi
# Add git info to prompt
-PROMPT+='%F{#D7005F}$(git_prompt_info) ' # Git prompt with symbols
+PROMPT+='%F{#4cd137}$(git_prompt_info) ' # Git prompt with symbols
PROMPT+='%{$fg[red]%}| ' # Pipe separator
PROMPT+='%{$reset_color%}' # Reset color