My configuration files for Debian/Ubuntu applications
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

25 lignes
688 B

  1. #!/usr/bin/env bash
  2. # Script intended for use via the command line.
  3. #
  4. # `.tmux.conf` needs to be set for TPM. Tmux has to be installed on the system,
  5. # but does not need to be started in order to run this script.
  6. CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  7. SCRIPTS_DIR="$CURRENT_DIR/../scripts"
  8. PROGRAM_NAME="$0"
  9. if [ $# -eq 0 ]; then
  10. echo "usage:"
  11. echo " $PROGRAM_NAME all update all plugins"
  12. echo " $PROGRAM_NAME tmux-foo update plugin 'tmux-foo'"
  13. echo " $PROGRAM_NAME tmux-bar tmux-baz update multiple plugins"
  14. exit 1
  15. fi
  16. main() {
  17. "$SCRIPTS_DIR/update_plugin.sh" --shell-echo "$*" # has correct exit code
  18. }
  19. main "$*"