#!/usr/bin/env zsh args=() for arg ($@) { [[ $arg =~ "^[A-Z][A-Z]$" ]] && arg="--profile=$arg" args=($args $arg) } exec mpv $args