diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-01-16 18:59:24 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-01-16 18:59:24 +0100 |
commit | 8b37f817c29715873b91c8a8e7f883eccc240895 (patch) | |
tree | ca7e8049afd69eaf11e1e8a7cd29ddd91d7aeda5 /lib/git.zsh | |
parent | 47c04d921ebb3fe4916eb131ae11557650aa1ae3 (diff) | |
download | zsh-8b37f817c29715873b91c8a8e7f883eccc240895.tar.gz zsh-8b37f817c29715873b91c8a8e7f883eccc240895.tar.bz2 zsh-8b37f817c29715873b91c8a8e7f883eccc240895.zip |
fix(lib): use -N syntax in `head` and `tail` to support Solaris (#6391)
Closes #6391
Co-authored-by: Sergey Mashkov <cy6erGn0m@gmail.com>
Diffstat (limited to 'lib/git.zsh')
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index 34ffc7ab7..c9363274c 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -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" |