Modify zsh prompt
This commit is contained in:
parent
c902aa4ea8
commit
4557e863db
@ -19,11 +19,10 @@ source "${HOME}/.aliases"
|
|||||||
source "${HOME}/.zprofile"
|
source "${HOME}/.zprofile"
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
source ~/.config/zsh/plugins/zsh-git-prompt/zshrc.sh
|
setopt prompt_subst
|
||||||
#export PROMPT="%B%F{blue}%~ %b%f$ "
|
setopt autocd
|
||||||
export PROMPT=' %F{#299b9b}%~ %f
|
PROMPT='%F{green}%m%f in %B%F{#299b9b}%~%f%b $(git_status)
|
||||||
[%B%F{red}%?%f%b]%F{#299b9b}%B>%b%f '
|
%f%b% {%B%F{red}%?%f%b}%F{#299b9b}%B>%b%f '
|
||||||
export RPROMPT='$(git_status)'
|
|
||||||
|
|
||||||
function git_status() {
|
function git_status() {
|
||||||
ref=$(git symbolic-ref --quiet --short HEAD 2> /dev/null || git rev-parse --short HEAD 2> /dev/null)
|
ref=$(git symbolic-ref --quiet --short HEAD 2> /dev/null || git rev-parse --short HEAD 2> /dev/null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user