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