shfmt VS zsh-syntax-highlighting

Compare shfmt vs zsh-syntax-highlighting and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
shfmt zsh-syntax-highlighting
2 72
84 19,053
- 1.9%
0.0 5.9
about 1 month ago about 1 month ago
Go Shell
BSD 3-clause "New" or "Revised" License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

shfmt

Posts with mentions or reviews of shfmt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-21.
  • Bash Defaults Not Working Like Atom?
    1 project | /r/pulsaredit | 21 Feb 2023
    Format-Shell is working, but I had to install shfmt manually: https://github.com/patrickvane/shfmt/releases/tag/master. Only one issue is that they don't offer native MacOSX for Silicon, but maybe that's not an issue
  • similar to shellcheck?
    5 projects | /r/bash | 21 Apr 2022
    There are also: - shfmt - sh - bash language server - bashate

zsh-syntax-highlighting

Posts with mentions or reviews of zsh-syntax-highlighting. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-08.
  • Setting up a MacBook for development in 2024
    5 projects | dev.to | 8 Jan 2024
    brew install fzf # for fuzzy find files, commands, etc brew install starship $(brew --prefix)/opt/fzf/install git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting # syntax highlight for zsh git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions # smart autosuggestions for zsh echo 'eval "$(starship init zsh)"' >> ~/.zshrc
  • Quickest path to a decent zsh setup?
    6 projects | /r/zsh | 5 Dec 2023
    # run this git clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH/custom/zsh-syntax-highlighting # add this to your .zshrc plugin=(... zsh-syntax-highlighting)
  • Arch Installation for Beginners
    3 projects | dev.to | 15 Sep 2023
    $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting $ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  • Configurando Alpine Linux, tmux e neovim no WSL2 - parte 1
    5 projects | dev.to | 8 Jun 2023
    sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
  • better than admitting I'm too too lazy to correct the command
    2 projects | /r/linuxmemes | 4 Jun 2023
  • [Question] What are the best plugins for zsh ?
    8 projects | /r/zsh | 28 May 2023
    Two by far the most popular plugins are zsh-syntax-highlighting and zsh-autosuggestions. They are of high quality and quite useful.
  • Configuração do Windows para desenvolvimento
    7 projects | dev.to | 26 May 2023
    echo "Installing zsh-autosuggestions" git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions echo "Installing zsh-syntax-highlighting" git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting echo "Installing asdf" git clone https://github.com/asdf-vm/asdf.git ~/.asdf
  • Why Oh My ZSH is so cool?
    4 projects | dev.to | 3 Mar 2023
    Syntax highlighting
  • ZSH + Oh My ZSH! on Windows with WSL
    4 projects | dev.to | 3 Mar 2023
    git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  • Wrote a "plugin manager" shell function. Any ideas for improvement?
    5 projects | /r/zsh | 13 Feb 2023
    if (($+commands[git])); then use_plugin() { local root_dir="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/plugins" local plugin_name=${1:t} # grabbing the 5th field works for a Github url, not necessarily for every url. local plugin_dir=$root_dir/${1//[/:]/_} if ! [[ -d $plugin_dir ]] echo $EPOCHSECONDS > $plugin_dir/update_timestamp # don't continue if cloning failed git clone --depth 1 "$1" "$plugin_dir" || return local timestamp read -r timestamp < $plugin_dir/update_timestamp if ((EPOCHSECONDS - timestamp > 864000)); then # don't update timestamp if pull failed git -C $plugin_dir pull && echo $EPOCHSECONDS > $plugin_dr/update_timestamp # Match common source filenames local file for file in ($plugin_name|${plugin_name:l}).(plugin.zsh|zsh|zsh-theme)(N); do source $plugin_dir/$filename && break done } use_plugin 'https://github.com/zsh-users/zsh-autosuggestions' use_plugin 'https://github.com/zsh-users/zsh-syntax-highlighting' fi

What are some alternatives?

When comparing shfmt and zsh-syntax-highlighting you can also consider the following projects:

ShellCheck - ShellCheck, a static analysis tool for shell scripts

fast-syntax-highlighting - (Short name F-Sy-H). Syntax-highlighting for Zshell – fine granularity, number of features and multiple shipped themes.

shellharden - The corrective bash syntax highlighter

ohmyzsh - 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.

neoformat - :sparkles: A (Neo)vim plugin for formatting code.

ble.sh - Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.

ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support

zsh-autosuggestions - Fish-like autosuggestions for zsh

vscode-bash-debug - Bash shell debugger extension for VSCode (based on bashdb)

starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

bash-language-server - A language server for Bash

oh-my-bash - A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.