diff options
| author | kj_sh604 | 2025-12-22 01:15:12 -0500 |
|---|---|---|
| committer | kj_sh604 | 2025-12-22 01:15:12 -0500 |
| commit | ead5248907ae835a9f50c051df2bf91e0b0cd939 (patch) | |
| tree | 794f1aea8e61ec03f1222ffb38ad1c33bf8e6b41 | |
| parent | 40ac23b5214a8f721ca897d140e71d4269aa7da9 (diff) | |
feat: attempt fish style pwd in zsh
| -rw-r--r-- | .config/shell/.zshrc | 2 | ||||
| -rw-r--r-- | .config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh | 21 |
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 | ||
| 11 | source_if_exists ~/.config/shell/git-prompt.zsh | 11 | source_if_exists ~/.config/shell/git-prompt.zsh |
| 12 | source_if_exists ~/.config/shell/git-prompts/kj_sh604.zsh | 12 | source_if_exists ~/.config/shell/git-prompts/kj_sh604-with-attempt-at-fish-style-pwd.zsh |
| 13 | source_if_exists ~/.config/shell/zsh-autosuggestions/zsh-autosuggestions.zsh | 13 | source_if_exists ~/.config/shell/zsh-autosuggestions/zsh-autosuggestions.zsh |
| 14 | source_if_exists ~/.config/shell/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh | 14 | source_if_exists ~/.config/shell/zsh-fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh |
| 15 | source_if_exists ~/.config/shell/zsh-history-substring-search/zsh-history-substring-search.zsh | 15 | 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 @@ | |||
| 1 | ZSH_GIT_PROMPT_FORCE_BLANK=1 | ||
| 2 | ZSH_GIT_PROMPT_SHOW_UPSTREAM="yes" | ||
| 3 | |||
| 4 | ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_no_bold[white]%}(" | ||
| 5 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_no_bold[white]%}) " | ||
| 6 | ZSH_THEME_GIT_PROMPT_SEPARATOR=" " | ||
| 7 | ZSH_THEME_GIT_PROMPT_DETACHED="%{$fg_no_bold[cyan]%}:" | ||
| 8 | ZSH_THEME_GIT_PROMPT_BRANCH="%{$fg_no_bold[magenta]%}" | ||
| 9 | ZSH_THEME_GIT_PROMPT_UPSTREAM_SYMBOL="%{$fg_bold[yellow]%}^ " | ||
| 10 | ZSH_THEME_GIT_PROMPT_UPSTREAM_PREFIX="%{$fg[red]%}(%{$fg[yellow]%}" | ||
| 11 | ZSH_THEME_GIT_PROMPT_UPSTREAM_SUFFIX="%{$fg[red]%})" | ||
| 12 | ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_no_bold[white]%}↓" | ||
| 13 | ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_no_bold[white]%}↑" | ||
| 14 | ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%}x" | ||
| 15 | ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[yellow]%}•" | ||
| 16 | ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[blue]%}+" | ||
| 17 | ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[blue]%}U" | ||
| 18 | ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}☐" | ||
| 19 | ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✓" | ||
| 20 | |||
| 21 | 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 ' | ||
