From ead5248907ae835a9f50c051df2bf91e0b0cd939 Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Mon, 22 Dec 2025 01:15:12 -0500 Subject: feat: attempt fish style pwd in zsh --- .config/shell/.zshrc | 2 +- .../kj_sh604-with-attempt-at-fish-style-pwd.zsh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh (limited to '.config') diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc index c2f6f4d..176ca9b 100644 --- a/.config/shell/.zshrc +++ b/.config/shell/.zshrc @@ -9,7 +9,7 @@ ensure_directory_and_file() { } source_if_exists ~/.config/shell/git-prompt.zsh -source_if_exists ~/.config/shell/git-prompts/kj_sh604.zsh +source_if_exists ~/.config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh source_if_exists ~/.config/shell/zsh-autosuggestions/zsh-autosuggestions.zsh source_if_exists ~/.config/shell/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh source_if_exists ~/.config/shell/zsh-history-substring-search/zsh-history-substring-search.zsh diff --git a/.config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh b/.config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh new file mode 100644 index 0000000..8584150 --- /dev/null +++ b/.config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh @@ -0,0 +1,21 @@ +ZSH_GIT_PROMPT_FORCE_BLANK=1 +ZSH_GIT_PROMPT_SHOW_UPSTREAM="yes" + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_no_bold[white]%}(" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_no_bold[white]%}) " +ZSH_THEME_GIT_PROMPT_SEPARATOR=" " +ZSH_THEME_GIT_PROMPT_DETACHED="%{$fg_no_bold[cyan]%}:" +ZSH_THEME_GIT_PROMPT_BRANCH="%{$fg_no_bold[magenta]%}" +ZSH_THEME_GIT_PROMPT_UPSTREAM_SYMBOL="%{$fg_bold[yellow]%}^ " +ZSH_THEME_GIT_PROMPT_UPSTREAM_PREFIX="%{$fg[red]%}(%{$fg[yellow]%}" +ZSH_THEME_GIT_PROMPT_UPSTREAM_SUFFIX="%{$fg[red]%})" +ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_no_bold[white]%}↓" +ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_no_bold[white]%}↑" +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%}x" +ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[yellow]%}•" +ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[blue]%}+" +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[blue]%}U" +ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}☐" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✓" + +PROMPT=$'%F{cyan}${${${:-$(printf "/%.1s" ${(s./.)PWD:h})/${PWD:t}}/\\/\\///}//\\%/%%}%f %F{242}$(gitprompt)%f%(12V.%F{242}%12v%f .)%(?.%F{white}.%F{white})%%%f ' -- cgit v1.2.3