Commit 326c2b08 authored by Andy Bateman's avatar Andy Bateman
Browse files

Replaced the use of 'print' with 'echo' in order to sanitise track and artist names

Fixed indentation

Fixed indentation
parent 993e09cc
......@@ -166,9 +166,9 @@ function itunes() {
if [[ "$state" = "playing" ]]; then
currenttrack=`osascript -e 'tell application "iTunes" to name of current track as string'`
currentartist=`osascript -e 'tell application "iTunes" to artist of current track as string'`
print -P "Listening to %F{yellow}$currenttrack%f by %F{yellow}$currentartist%f";
echo -E "Listening to $fg[yellow]$currenttrack$reset_color by $fg[yellow]$currentartist$reset_color";
else
print "iTunes is" $state;
echo "iTunes is" $state;
fi
return 0
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment