diff options
author | Hendrik Jaeger <git-commit@henk.geekmail.org> | 2016-09-25 00:00:02 +0200 |
---|---|---|
committer | Hendrik Jaeger <git-commit@henk.geekmail.org> | 2016-09-25 00:00:02 +0200 |
commit | e7af698dce41b3293f046aeb51eaa7d60845456d (patch) | |
tree | 33565b8f29ae8606f32882fc4faed452a91ec27f /.zsh_functions | |
parent | b83cccf7fb1f9446f87899d8251590edd0b92241 (diff) |
Convenience functions and aliases
Diffstat (limited to '.zsh_functions')
-rw-r--r-- | .zsh_functions | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/.zsh_functions b/.zsh_functions index 664e266..18aa5e3 100644 --- a/.zsh_functions +++ b/.zsh_functions @@ -40,35 +40,17 @@ precmd () { vcs_info - PS1="${HENKSPROMPTHEADER}%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# " -} + local INBOXINFO="$(task rc.gc=off rc.verbose=nothing +in +PENDING count) " -function vifind () { - vi $( find $1 -type f ) + PS1="${HENKSPROMPTHEADER}${INBOXINFO}%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# " } -function mpvshuffledir () { - mpv $MPVOPTS \ - --shuffle \ - ${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov) -} - -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 vifind () { + vi $( find $@) } -function movies_biggest () { - mpv $MPVOPTS \ - **/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov)(OL) +function new_haskell_project () { + stack new $1 simple + cd $1 + git init } |