summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh_aliases7
-rw-r--r--.zsh_functions34
-rw-r--r--.zshrc2
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
}
diff --git a/.zshrc b/.zshrc
index 248175e..cf75bed 100644
--- a/.zshrc
+++ b/.zshrc
@@ -3,6 +3,8 @@ autoload -U edit-command-line
. ~/.zsh_comprc
. ~/.zsh_functions
+. ~/.zsh_functions_media
+. ~/.zsh_functions_taskwarrior
. ~/.zsh_aliases
. ~/.zsh_local