Skip to content

Instantly share code, notes, and snippets.

@Argon-
Last active September 14, 2017 15:41
Show Gist options
  • Save Argon-/2661a199d41f29c385b0891eb9cc63f1 to your computer and use it in GitHub Desktop.
Save Argon-/2661a199d41f29c385b0891eb9cc63f1 to your computer and use it in GitHub Desktop.
Modification for debugging
#!/bin/sh
export MPVBUNDLE="true"
# set the right args for the user specified standard shell
# to load the expected profiles and configs
args="-c"
case "$SHELL" in
*bash) args="-l $args";;
*zsh) args="-l -i $args";;
esac
cd "$(dirname "$0")"
$SHELL $args "./mpv ${@}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment