diff --git a/config/homebrew/Brewfile b/config/homebrew/Brewfile index 116ddae..39a1ec4 100644 --- a/config/homebrew/Brewfile +++ b/config/homebrew/Brewfile @@ -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 diff --git a/local/bin/dfm b/local/bin/dfm index 5ae3f03..4addc8c 100755 --- a/local/bin/dfm +++ b/local/bin/dfm @@ -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 \ diff --git a/scripts/install-cargo-packages.sh b/scripts/install-cargo-packages.sh index 45c8409..8b8a456 100755 --- a/scripts/install-cargo-packages.sh +++ b/scripts/install-cargo-packages.sh @@ -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