show-versions 606 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. IFS=$'\n\t'
  4. # Display a list of software versions dotfiles is interested in.
  5. echo "Installed:"
  6. command -v git >/dev/null && git version || true
  7. command -v zsh >/dev/null && zsh --version || true
  8. command -v tmux >/dev/null && tmux -V || true
  9. command -v vim >/dev/null && vim --version | head -n 1 || true
  10. command -v nvim >/dev/null && nvim -v | head -n 1 || true
  11. command -v ag >/dev/null && ag --version | head -n 1 || true
  12. command -v pandoc >/dev/null && pandoc -v | head -n 1 || true
  13. command -v pandoc-citeproc >/dev/null && pandoc-citeproc -V | head -n 1 || true