summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2011-05-14 22:53:18 +0200
committerSebastian Reichel <sre@ring0.de>2011-05-14 22:53:18 +0200
commit8b36b833e968f89048a9a9dec9283183a471e9ab (patch)
tree7244d440ebe52e09f5bdb0bbd556314939082a54
parent4071689c049d834aff0668bb728a9b523a8a608c (diff)
downloadzsh-config-8b36b833e968f89048a9a9dec9283183a471e9ab.tar.bz2
alias -s: start mplayer in background
-rw-r--r--zshrc15
1 files 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 >/dev/null 2>&1 &!
}
# get vcs info for the prompt