From 8b36b833e968f89048a9a9dec9283183a471e9ab Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sat, 14 May 2011 22:53:18 +0200 Subject: alias -s: start mplayer in background --- zshrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/zshrc b/zshrc index ae7b853..fa7a73e 100644 --- a/zshrc +++ b/zshrc @@ -51,6 +51,7 @@ alias vim="vim -p" # improved calender alias cal="ccal -e -f" +# use mplayer2 instead of mplayer alias mplayer="mplayer2" # suffix aliases @@ -59,12 +60,12 @@ alias -s gif="background gpicview" alias -s png="background gpicview" alias -s svg="background gpicview" alias -s pdf="background evince" -alias -s mkv="mplayer2 -really-quiet" -alias -s ogg="mplayer2 -really-quiet" -alias -s wmv="mplayer2 -really-quiet" -alias -s mpg="mplayer2 -really-quiet" -alias -s avi="mplayer2 -really-quiet" -alias -s mp4="mplayer2 -really-quiet" +alias -s mkv="background mplayer2" +alias -s ogg="background mplayer2" +alias -s wmv="background mplayer2" +alias -s mpg="background mplayer2" +alias -s avi="background mplayer2" +alias -s mp4="background mplayer2" alias -s exe="wine" alias -s vala="vim" alias -s txt="vim" @@ -87,7 +88,7 @@ title() { # function to spawn a program in the background background() { - $1 $2 >/dev/null 2>&1 &! + $1 $2 /dev/null 2>&1 &! } # get vcs info for the prompt -- cgit v1.2.3