mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-11 00:51:53 +00:00
fix(dfm): have to x-have
This commit is contained in:
@@ -203,7 +203,7 @@ function section_brew
|
|||||||
"autoupdate:Setups brew auto-update and runs it immediately"
|
"autoupdate:Setups brew auto-update and runs it immediately"
|
||||||
)
|
)
|
||||||
|
|
||||||
have brew && {
|
x-have brew && {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install)
|
install)
|
||||||
brew bundle install --file="$BREWFILE" --force --quiet && msg_yay "Done!"
|
brew bundle install --file="$BREWFILE" --force --quiet && msg_yay "Done!"
|
||||||
@@ -229,7 +229,7 @@ function section_brew
|
|||||||
esac
|
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
|
function section_helpers
|
||||||
@@ -294,14 +294,14 @@ function section_dotfiles
|
|||||||
msg_ok "Deleted old nvim files (share, state and cache + config)"
|
msg_ok "Deleted old nvim files (share, state and cache + config)"
|
||||||
ln -s "$DOTFILES/config/nvim" ~/.config/nvim
|
ln -s "$DOTFILES/config/nvim" ~/.config/nvim
|
||||||
msg_ok "Linked nvim and astronvim"
|
msg_ok "Linked nvim and astronvim"
|
||||||
have npm && $0 install npm
|
x-have npm && $0 install npm
|
||||||
msg_ok "Installed packages"
|
msg_ok "Installed packages"
|
||||||
msg_done "nvim reset!"
|
msg_done "nvim reset!"
|
||||||
;;
|
;;
|
||||||
yamlfmt)
|
yamlfmt)
|
||||||
# format yaml files
|
# format yaml files
|
||||||
have yamlfmt && yamlfmt -conf "$DOTFILES/.yamlfmt"
|
x-have yamlfmt && yamlfmt -conf "$DOTFILES/.yamlfmt"
|
||||||
! have yamlfmt && msg_err "yamlfmt not found"
|
! x-have yamlfmt && msg_err "yamlfmt not found"
|
||||||
;;
|
;;
|
||||||
shfmt)
|
shfmt)
|
||||||
# Format shell scripts according to following rules.
|
# Format shell scripts according to following rules.
|
||||||
|
|||||||
Reference in New Issue
Block a user