feat(dfm): shfmt now run with cargo installed fd

This commit is contained in:
2023-09-19 09:03:08 +03:00
parent 50fc1ea279
commit b3445d7e7a
3 changed files with 5 additions and 14 deletions

View File

@@ -108,8 +108,6 @@ brew "eg-examples"
brew "entr"
# Perl lib for reading and writing EXIF metadata
brew "exiftool"
# Simple, fast and user-friendly alternative to find
brew "fd"
# Banner-like program prints strings as ASCII art
brew "figlet"
# Libraries to talk to Microsoft SQL Server and Sybase databases

View File

@@ -261,18 +261,9 @@ function section_dotfiles
;;
shfmt)
# Format shell scripts according to following rules.
find "$DOTFILES" \
-type f -executable \
-not -path '*/.git/*' \
-not -path '*dotbot*' \
-not -path '*config/fzf*' \
-not -path '*bin/fzf*' \
-not -path '*tmux/plugins*' \
-not -name '*.pl' \
-not -name '*.py' \
-not -name '*.php' \
-not -name '*.zsh' \
-exec shfmt \
fd --full-path "$DOTFILES" -tx \
-E '*.pl' -E '*.php' -E '*.py' -E '*.zsh' -E 'plugins' -E 'fzf' -E 'dotbot' \
-x shfmt \
--language-dialect bash \
--func-next-line --list --write \
--indent 2 --case-indent --space-redirects \

View File

@@ -14,6 +14,8 @@ packages=(
"bkt"
# a structural diff that understands syntax
"difftastic"
# A simple, fast and user-friendly alternative to 'find'
"fd-find"
)
for pkg in "${packages[@]}"; do