diff options
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 } |