mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-08-05 23:34:26 +08:00
fix(lib): use -N syntax in head and tail to support Solaris (#6391)
Closes #6391 Co-authored-by: Sergey Mashkov <cy6erGn0m@gmail.com>
This commit is contained in:
co-authored by
Sergey Mashkov
parent
47c04d921e
commit
8b37f817c2
+1
-1
@@ -51,7 +51,7 @@ function parse_git_dirty() {
|
||||
FLAGS+="--ignore-submodules=${GIT_STATUS_IGNORE_SUBMODULES:-dirty}"
|
||||
;;
|
||||
esac
|
||||
STATUS=$(__git_prompt_git status ${FLAGS} 2> /dev/null | tail -n1)
|
||||
STATUS=$(__git_prompt_git status ${FLAGS} 2> /dev/null | tail -1)
|
||||
fi
|
||||
if [[ -n $STATUS ]]; then
|
||||
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
||||
|
||||
Reference in New Issue
Block a user