dotsync.fish 531 B

1234567891011121314151617
  1. function dotsync --description "Manage dotfiles synchronization"
  2. set -l dotfiles_script "$HOME/.dofiles/dotfiles/start"
  3. # Check if the start script exists
  4. if not test -x "$dotfiles_script"
  5. echo "Error: Dotfiles script not found at $dotfiles_script" >&2
  6. return 1
  7. end
  8. # If no arguments provided, default to sync
  9. if test (count $argv) -eq 0
  10. command "$dotfiles_script" sync
  11. else
  12. # Pass all arguments to the start script
  13. command "$dotfiles_script" $argv
  14. end
  15. end