chore(zsh): remove starship prompt

This commit is contained in:
Oliver Davies 2022-05-23 12:26:36 +01:00
parent 5e81f42460
commit b7518872ff
3 changed files with 15 additions and 2 deletions

View file

@ -8,5 +8,3 @@ antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen apply
eval "$(starship init zsh)"

View file

@ -0,0 +1,14 @@
source /usr/lib/git-core/git-sh-prompt
setopt promptsubst
git_prompt() {
local branch="$(git symbolic-ref HEAD 2> /dev/null | cut -d'/' -f3)"
local branch_truncated="${branch:0:30}"
if (( ${#branch} > ${#branch_truncated} )); then
branch="${branch_truncated}..."
fi
[ -n "${branch}" ] && echo " (${branch})"
}
export PS1="in %{$fg[blue]%}%~%{$fg[yellow]%}$(git_prompt)%{$reset_color%} %(?.$.%{$fg[red]%}$)%b "

View file

@ -12,6 +12,7 @@ sources=(
'path'
'platformsh'
'plugins'
'prompt'
'post/completion'
)