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() { } 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 ' |
