mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
feat(updater): add changelog display by parsing the commit list
This commit is contained in:
parent
e093a4cf62
commit
eeab4e5186
2 changed files with 425 additions and 0 deletions
|
|
@ -64,6 +64,13 @@ if git pull --rebase --stat origin master; then
|
|||
ret=80 # non-zero exit code to indicate no changes pulled
|
||||
else
|
||||
message="Hooray! Oh My Zsh has been updated!"
|
||||
|
||||
# Display changelog with less if available, otherwise just print it to the terminal
|
||||
if (( $+commands[less] )); then
|
||||
command less -R <("$ZSH/tools/changelog.sh" HEAD "$last_commit")
|
||||
else
|
||||
"$ZSH/tools/changelog.sh" HEAD "$last_commit"
|
||||
fi
|
||||
fi
|
||||
|
||||
printf '%s %s__ %s %s %s %s %s__ %s\n' $RAINBOW $RESET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue