summaryrefslogtreecommitdiff
path: root/plugins/osx
diff options
context:
space:
mode:
authorGuerki <pol.guerkinger@gmail.com>2014-07-29 09:27:58 +0200
committerGuerki <pol.guerkinger@gmail.com>2014-07-29 09:27:58 +0200
commit65ce765043e75ffb459763565f21df786022f092 (patch)
treebbc50582ee0a239c7adc143bc7ef5509e6177c4d /plugins/osx
parentdb3dd6d755776daf19b55f6a1cae080ae684030a (diff)
parent207b6a1e338e03ba06cccf255fbaa7e6147e8f94 (diff)
downloadzsh-65ce765043e75ffb459763565f21df786022f092.tar.gz
zsh-65ce765043e75ffb459763565f21df786022f092.tar.bz2
zsh-65ce765043e75ffb459763565f21df786022f092.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'plugins/osx')
-rw-r--r--plugins/osx/osx.plugin.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index 63760b5ff..a63f0ee05 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -174,12 +174,16 @@ function itunes() {
next|previous)
opt="$opt track"
;;
+ vol)
+ opt="set sound volume to $1" #$1 Due to the shift
+ ;;
""|-h|--help)
echo "Usage: itunes <option>"
echo "option:"
echo "\tlaunch|play|pause|stop|rewind|resume|quit"
echo "\tmute|unmute\tcontrol volume set"
echo "\tnext|previous\tplay next or previous track"
+ echo "\tvol\tSet the volume, takes an argument from 0 to 100"
echo "\thelp\tshow this message and exit"
return 0
;;
@@ -190,4 +194,3 @@ function itunes() {
esac
osascript -e "tell application \"iTunes\" to $opt"
}
-