diff options
author | Hendrik Jaeger <henk@frustcomp> | 2015-01-26 22:33:04 +0100 |
---|---|---|
committer | Hendrik Jaeger <henk@frustcomp> | 2015-01-26 22:33:04 +0100 |
commit | 590fa35fde4f48c32fc308275286c68a1bf88ea4 (patch) | |
tree | e3ccf4d0ff56d9bdf0931feba220466a7ff904e0 | |
parent | f0a1f3fe2ed28ed216847f32c8a89139cdec2e26 (diff) |
Changes to be committed:
modified: .zsh_aliases
modified: .zsh_functions
modified: .zshrc
-rw-r--r-- | .zsh_aliases | 3 | ||||
-rw-r--r-- | .zsh_functions | 28 | ||||
-rw-r--r-- | .zshrc | 20 |
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) } @@ -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 |