Skip to content

Commit

Permalink
maint: update copy of zinit.1 in $ZPFX/man/ if out-of-date (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint authored and vladdoster committed Oct 30, 2022
1 parent 505460d commit 9fd528e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1287,9 +1287,10 @@ builtin setopt noaliases
command mkdir 2>/dev/null -p ${~ZINIT[MAN_DIR]}/man{1..9}
}
# Copy Zinit manpage so that man is able to find it
[[ ! -f $ZINIT[MAN_DIR]/man1/zinit.1 ]] && {
[[ ! -f $ZINIT[MAN_DIR]/man1/zinit.1 || \
$ZINIT[MAN_DIR]/man1/zinit.1 -ot $ZINIT[BIN_DIR]/doc/zinit.1 ]] && {
command mkdir -p $ZINIT[MAN_DIR]/man1
command cp $ZINIT[BIN_DIR]/doc/zinit.1 $ZINIT[MAN_DIR]/man1
command cp -f $ZINIT[BIN_DIR]/doc/zinit.1 $ZINIT[MAN_DIR]/man1
}
} # ]]]
# FUNCTION: .zinit-load-object. [[[
Expand Down

0 comments on commit 9fd528e

Please sign in to comment.