zsh prompt update and brew autocompletion
This commit is contained in:
parent
b45c4aa87b
commit
1c57402847
2 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ zstyle '*' single-ignored show
|
|||
# include homebrew completions if available
|
||||
if type brew &>/dev/null; then
|
||||
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
|
||||
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
|
|
@ -61,5 +61,5 @@ function check_reboot {
|
|||
test -f /var/run/reboot-required && echo "R "
|
||||
}
|
||||
|
||||
PROMPT='${PR_BOLD_RED}$(check_reboot)%{$reset_color%}%m ${PR_BOLD_YELLOW}$(truncated_pwd 3)$(git_prompt)%(?.%F{magenta}.%F{red})❯%f '
|
||||
PROMPT='${PR_BOLD_RED}$(check_reboot)%{$reset_color%}%m ${PR_BOLD_YELLOW}$(truncated_pwd 3)$(git_prompt)%(?.%F{magenta}.%F{red})❯%f%b '
|
||||
#PROMPT='$(check_reboot)%m $(truncated_pwd 3) $(git_branch) $(git_unstaged)$(git_is_ahead)$(git_is_behind)> '
|
||||
|
|
Loading…
Reference in a new issue