summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkj_sh6042025-12-22 01:15:12 -0500
committerkj_sh6042025-12-22 01:15:12 -0500
commitead5248907ae835a9f50c051df2bf91e0b0cd939 (patch)
tree794f1aea8e61ec03f1222ffb38ad1c33bf8e6b41
parent40ac23b5214a8f721ca897d140e71d4269aa7da9 (diff)
feat: attempt fish style pwd in zsh
-rw-r--r--.config/shell/.zshrc2
-rw-r--r--.config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh21
2 files changed, 22 insertions, 1 deletions
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() {
9} 9}
10 10
11source_if_exists ~/.config/shell/git-prompt.zsh 11source_if_exists ~/.config/shell/git-prompt.zsh
12source_if_exists ~/.config/shell/git-prompts/kj_sh604.zsh 12source_if_exists ~/.config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh
13source_if_exists ~/.config/shell/zsh-autosuggestions/zsh-autosuggestions.zsh 13source_if_exists ~/.config/shell/zsh-autosuggestions/zsh-autosuggestions.zsh
14source_if_exists ~/.config/shell/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 14source_if_exists ~/.config/shell/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
15source_if_exists ~/.config/shell/zsh-history-substring-search/zsh-history-substring-search.zsh 15source_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 @@
1ZSH_GIT_PROMPT_FORCE_BLANK=1
2ZSH_GIT_PROMPT_SHOW_UPSTREAM="yes"
3
4ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_no_bold[white]%}("
5ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_no_bold[white]%}) "
6ZSH_THEME_GIT_PROMPT_SEPARATOR=" "
7ZSH_THEME_GIT_PROMPT_DETACHED="%{$fg_no_bold[cyan]%}:"
8ZSH_THEME_GIT_PROMPT_BRANCH="%{$fg_no_bold[magenta]%}"
9ZSH_THEME_GIT_PROMPT_UPSTREAM_SYMBOL="%{$fg_bold[yellow]%}^ "
10ZSH_THEME_GIT_PROMPT_UPSTREAM_PREFIX="%{$fg[red]%}(%{$fg[yellow]%}"
11ZSH_THEME_GIT_PROMPT_UPSTREAM_SUFFIX="%{$fg[red]%})"
12ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_no_bold[white]%}↓"
13ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_no_bold[white]%}↑"
14ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%}x"
15ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[yellow]%}•"
16ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[blue]%}+"
17ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[blue]%}U"
18ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}☐"
19ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✓"
20
21PROMPT=$'%F{cyan}${${${:-$(printf "/%.1s" ${(s./.)PWD:h})/${PWD:t}}/\\/\\///}//\\%/%%}%f %F{242}$(gitprompt)%f%(12V.%F{242}%12v%f .)%(?.%F{white}.%F{white})%%%f '