mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fixed tab/spaces
This commit is contained in:
parent
6570870828
commit
9724ff975f
1 changed files with 63 additions and 62 deletions
|
|
@ -162,6 +162,7 @@ function itunes() {
|
||||||
opt="set sound volume to $1" #$1 Due to the shift
|
opt="set sound volume to $1" #$1 Due to the shift
|
||||||
;;
|
;;
|
||||||
status|nowplaying)
|
status|nowplaying)
|
||||||
|
# Inspired by: http://hints.macworld.com/article.php?story=20011108211802830
|
||||||
local state=`osascript -e 'tell application "iTunes" to player state as string'`
|
local state=`osascript -e 'tell application "iTunes" to player state as string'`
|
||||||
echo "iTunes is currently $state"
|
echo "iTunes is currently $state"
|
||||||
if [ "$state" = "playing" ]; then
|
if [ "$state" = "playing" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue