git-hook-backup-code-codium-extensions.sh 350 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. DOTFILES="${HOME}/.dotfiles"
  3. code_exts=".config/Code/User/vscode-extensions.txt"
  4. codium_exts=".config/VSCodium/User/vscodium-extensions.txt"
  5. cd "$DOTFILES"
  6. command -v codium && codium --list-extensions > "${codium_exts}"
  7. command -v code && code --list-extensions > "${code_exts}"
  8. git add "$codium_exts"
  9. git add "$code_exts"