summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh_aliases3
-rw-r--r--.zsh_functions28
-rw-r--r--.zshrc20
3 files changed, 24 insertions, 27 deletions
diff --git a/.zsh_aliases b/.zsh_aliases
index bfbb59e..f9a3a90 100644
--- a/.zsh_aliases
+++ b/.zsh_aliases
@@ -1,6 +1,5 @@
-alias qmplayer='mplayer -ao null'
+alias qmpv='mpv -ao null'
alias dus='du -s * | sort -n'
-alias dvdrip='mencoder -vf crop=704:416:8:80 -oac copy -aid 130 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:mbd=2:trell:v4mv:turbo'
alias ls='ls --color=auto'
alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"
alias diary='vim ~/personal_data/documents/private/diary/$(date +%F).txt'
diff --git a/.zsh_functions b/.zsh_functions
index 453f122..664e266 100644
--- a/.zsh_functions
+++ b/.zsh_functions
@@ -47,12 +47,28 @@ function vifind () {
vi $( find $1 -type f )
}
-function shufflevideos () {
- find $@ -type f -iregex ".*\.\(avi\|flv\|mkv\|mpeg\|mpg\|wmv\|wva\|mp4\|webm\|wva\|m4v\|ogm\|mp4\|mov\)" -exec mpv --shuffle $MPVOPTS \{\} +
+function mpvshuffledir () {
+ mpv $MPVOPTS \
+ --shuffle \
+ ${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)
}
-function zle-line-init zle-keymap-select {
- RPS1="%B${${KEYMAP/vicmd/c}/(main|viins)/}%b"
- RPS2=$RPS1
- zle reset-prompt
+function movies_oldest () {
+ mpv $MPVOPTS \
+ **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(Om)
+}
+
+function movies_newest () {
+ mpv $MPVOPTS \
+ **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(om)
+}
+
+function movies_smallest () {
+ mpv $MPVOPTS \
+ **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(oL)
+}
+
+function movies_biggest () {
+ mpv $MPVOPTS \
+ **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(OL)
}
diff --git a/.zshrc b/.zshrc
index a575e6c..4484314 100644
--- a/.zshrc
+++ b/.zshrc
@@ -49,22 +49,4 @@ setopt AUTO_CONTINUE
setopt NO_BG_NICE
setopt LONG_LIST_JOBS
-bindkey -v
-
-# Use vim cli mode
-bindkey '^P' up-history
-bindkey '^N' down-history
-
-# backspace and ^h working even after
-# returning from command mode
-bindkey '^?' backward-delete-char
-bindkey '^h' backward-delete-char
-
-# ctrl-w removed word backwards
-bindkey '^w' backward-kill-word
-
-# ctrl-r starts searching history backward
-bindkey '^r' history-incremental-search-backward
-
-# v in command mode starts editor for current line
-bindkey -M vicmd v edit-command-line
+bindkey -e