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 | |
parent | b83cccf7fb1f9446f87899d8251590edd0b92241 (diff) |
Convenience functions and aliases
-rw-r--r-- | .zsh_aliases | 7 | ||||
-rw-r--r-- | .zsh_functions | 34 | ||||
-rw-r--r-- | .zshrc | 2 |
3 files changed, 17 insertions, 26 deletions
diff --git a/.zsh_aliases b/.zsh_aliases index 4691050..060d48e 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -4,3 +4,10 @@ alias ls='ls --color=auto -b' alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg" alias diary='vim ~/Data/henksfiles/TODO/henksfiles/documents/private/diary/$(date +%F).txt' alias henk_rdesktop='rdesktop -u hendrik.jaeger -d TAM -p - -g 1920x1080 -z -P -K' +alias hw1mpv='mpv --ao=alsa:device=[hw:1,0] --audio-format s32' + +alias t='task' +alias i='task in' + +alias vi='nvim' +alias vim='nvim' 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 } @@ -3,6 +3,8 @@ autoload -U edit-command-line . ~/.zsh_comprc . ~/.zsh_functions +. ~/.zsh_functions_media +. ~/.zsh_functions_taskwarrior . ~/.zsh_aliases . ~/.zsh_local |