diff options
author | 2024-03-25 16:43:09 +0530 | |
---|---|---|
committer | 2024-03-25 16:43:09 +0530 | |
commit | a62114c91f2070c8c8453d117f3d81dc113e41ff (patch) | |
tree | f266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/themes/peepcode.zsh-theme | |
parent | af120ab348f2e1a5a39dec035ed9dcf84189a64e (diff) | |
download | dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2 dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip |
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/themes/peepcode.zsh-theme')
-rw-r--r-- | zsh/oh-my-zsh/themes/peepcode.zsh-theme | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/zsh/oh-my-zsh/themes/peepcode.zsh-theme b/zsh/oh-my-zsh/themes/peepcode.zsh-theme deleted file mode 100644 index 0445346..0000000 --- a/zsh/oh-my-zsh/themes/peepcode.zsh-theme +++ /dev/null @@ -1,47 +0,0 @@ -# -# Based on Geoffrey Grosenbach's peepcode zsh theme from -# https://github.com/topfunky/zsh-simple -# - -git_repo_path() { - command git rev-parse --git-dir 2>/dev/null -} - -git_commit_id() { - command git rev-parse --short HEAD 2>/dev/null -} - -git_mode() { - if [[ -e "$repo_path/BISECT_LOG" ]]; then - echo "+bisect" - elif [[ -e "$repo_path/MERGE_HEAD" ]]; then - echo "+merge" - elif [[ -e "$repo_path/rebase" || -e "$repo_path/rebase-apply" || -e "$repo_path/rebase-merge" || -e "$repo_path/../.dotest" ]]; then - echo "+rebase" - fi -} - -git_dirty() { - if [[ "$repo_path" != '.' && -n "$(command git ls-files -m)" ]]; then - echo " %{$fg_bold[grey]%}✗%{$reset_color%}" - fi -} - -git_prompt() { - local cb=$(git_current_branch) - if [[ -n "$cb" ]]; then - local repo_path=$(git_repo_path) - echo " %{$fg_bold[grey]%}$cb %{$fg[white]%}$(git_commit_id)%{$reset_color%}$(git_mode)$(git_dirty)" - fi -} - -local smiley='%(?.%F{green}☺%f.%F{red}☹%f)' - -PROMPT=' -${VIRTUAL_ENV:+"($VIRTUAL_ENV) "}%~ -${smiley} ' - -RPROMPT='%F{white} $(ruby_prompt_info)$(git_prompt)%{$reset_color%}' - -# Disable automatic virtualenv prompt change -export VIRTUAL_ENV_DISABLE_PROMPT=1 |