diff --git a/functions/vlc.fish b/functions/vlc.fish new file mode 100644 index 0000000..74f768e --- /dev/null +++ b/functions/vlc.fish @@ -0,0 +1,15 @@ +# SYNOPSIS +# vlc [options] [file ...] edit the given files +# + +function vlc -d "Open VLC media player" + + if begin; which vlc > /dev/null 2>&1; and test -x (which vlc); end + command vlc $argv + else if test -d "/Applications/VLC.app" + "/Applications/VLC.app/Contents/MacOS/VLC" $argv > /dev/null 2>&1 + else + echo "No VLC installation found" >&2 + return 1 + end +end \ No newline at end of file