changeset 450:10fc202cef8a

Added pp function
author unexist
date Thu, 01 Aug 2013 17:50:49 +0200
parents 5e608029b683
children f59da7734c99
files .zshrc
diffstat 1 files changed, 14 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/.zshrc	Thu Aug 01 17:50:39 2013 +0200
+++ b/.zshrc	Thu Aug 01 17:50:49 2013 +0200
@@ -147,6 +147,20 @@
   rsync -avh --progress -e ssh --remove-source-files *.mkv xbmc@192.168.1.5:$*
 }
 
+function pp
+{
+  for i in *.(mkv|avi|wmv|mp[1-9]); do
+    mplayer -vo x11 -nosound -zoom -fs "$i"
+
+    echo -n "Keep? (Y/n) "
+    read keep
+
+    if [ "x$keep" = "xn" ] ; then
+      rm -rf "$i"
+    fi
+  done
+}
+
 # Prompt
 if [ "$USER" = "root" ] ; then
   PS1=%1~$'%{\e[36;1m%}%(1j.%%%j.)%{\e[30;1m%} ➤ %{\e[0m%}'
@@ -200,14 +214,6 @@
   source $HOME/.config/user-dirs.dirs
 fi
 
-# Git
-if [ -e /usr/bin/git ] ; then
-  export GIT_AUTHOR_NAME="unexist"
-  export GIT_AUTHOR_EMAIL="unexist@dorfelite.net"
-  export GIT_COMMITTER_NAME="unexist"
-  export GIT_COMMITTER_EMAIL="unexist@dorfelite.net"
-fi
-
 # Browser
 export BROWSER="/usr/bin/chromium-browser"