add vlc alias

This commit is contained in:
Rico Ullmann 2016-07-03 15:44:42 +02:00
parent a7f7bf99e4
commit 618c4308ac
1 changed files with 15 additions and 0 deletions

15
functions/vlc.fish Normal file
View File

@ -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