fix(dfm): have to x-have

This commit is contained in:
2023-11-13 12:44:28 +02:00
parent 7fb38fe8f3
commit f392938e9e

View File

@@ -203,7 +203,7 @@ function section_brew
"autoupdate:Setups brew auto-update and runs it immediately"
)
have brew && {
x-have brew && {
case "$1" in
install)
brew bundle install --file="$BREWFILE" --force --quiet && msg_yay "Done!"
@@ -229,7 +229,7 @@ function section_brew
esac
}
! have brew && menu_section "$USAGE_PREFIX" "brew not available on this system"
! x-have brew && menu_section "$USAGE_PREFIX" "brew not available on this system"
}
function section_helpers
@@ -294,14 +294,14 @@ function section_dotfiles
msg_ok "Deleted old nvim files (share, state and cache + config)"
ln -s "$DOTFILES/config/nvim" ~/.config/nvim
msg_ok "Linked nvim and astronvim"
have npm && $0 install npm
x-have npm && $0 install npm
msg_ok "Installed packages"
msg_done "nvim reset!"
;;
yamlfmt)
# format yaml files
have yamlfmt && yamlfmt -conf "$DOTFILES/.yamlfmt"
! have yamlfmt && msg_err "yamlfmt not found"
x-have yamlfmt && yamlfmt -conf "$DOTFILES/.yamlfmt"
! x-have yamlfmt && msg_err "yamlfmt not found"
;;
shfmt)
# Format shell scripts according to following rules.