mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
Resolved conflicts: lib/completion.zsh lib/git.zsh lib/key-bindings.zsh
This commit is contained in:
commit
3891809bed
49 changed files with 581 additions and 136 deletions
|
|
@ -16,7 +16,7 @@ function git_prompt_info() {
|
|||
}
|
||||
|
||||
parse_git_dirty () {
|
||||
if [[ $((git status 2> /dev/null) | tail -n1) != "nothing to commit (working directory clean)" ]]; then
|
||||
if [[ -n $(git status -s 2> /dev/null) ]]; then
|
||||
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
||||
else
|
||||
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
||||
|
|
@ -43,3 +43,4 @@ function current_branch_for_display() {
|
|||
branch=$(current_branch) || return
|
||||
echo ${branch/master/M} # master abbreviated to M.
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue