add vlc alias
This commit is contained in:
parent
a7f7bf99e4
commit
618c4308ac
|
@ -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
|
Loading…
Reference in New Issue