From 618c4308aca323ae169bf6e7cb71cd0ecc0b2ed8 Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Sun, 3 Jul 2016 15:44:42 +0200 Subject: [PATCH] add vlc alias --- functions/vlc.fish | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 functions/vlc.fish 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