Taskwarrior config

This commit is contained in:
2019-09-03 13:51:23 -04:00
parent 1e65b54066
commit 0cb1db417b
17 changed files with 134 additions and 36 deletions

View File

@@ -43,8 +43,6 @@ set SPACEFISH_VI_MODE_SUFFIX ''
set -x PASSWORD_STORE_CLIP_TIME 120
set -xU XSET_RATE 90
set -xU XSET_DELAY 200
# causes xmodmap to have issues when opening terminal sometimes
# xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
{{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
xset r rate $XSET_DELAY $XSET_RATE
{{ end }}
@@ -81,6 +79,7 @@ end
abbr ab "abbr"
abbr abe "abbr -e"
abbr hm "history merge"
abbr hs "history search --show-time"
# abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
abbr f. "cd .."
abbr f.. "cd ../.."
@@ -92,6 +91,9 @@ abbr xf "fish_config"
# fxn abbr's [[[ #
abbr ! "sudo !!"
abbr ae "task-edit"
abbr ad "task-done"
abbr ap "task-mod-pri"
abbr ag "grep-aliases"
abbr b "buku-fzf"
abbr bf "buku-fzf fq"
@@ -111,6 +113,7 @@ abbr fzv "fzf-vim"
# git [[[ #
abbr gcamp "git-amend-push"
abbr gclg "git-clone-gitea"
abbr gdf "git-diff-files"
abbr gpsmt "git-push-multiple"
abbr gremotes "git-mult-remotes"
@@ -118,7 +121,7 @@ abbr grmb "git-delete-branch"
abbr gro "git-replace-origin"
# ]]] git #
abbr hs "scan-history"
abbr svs "scan-history"
abbr m "man-vim"
abbr mat "math"
abbr pgr "grep-pdf"
@@ -151,3 +154,9 @@ abbr jct "java-compile-test"
# ]]] fxn abbr's #
abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
# task sync > /dev/null 2>&1
# causes xmodmap to have issues when opening terminal sometimes (with Alt key?)
# sleep .2 && xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
# xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
~/scripts/xmodmap-custom

View File

@@ -0,0 +1,3 @@
function git-clone-gitea
git clone ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[1].git
end

View File

@@ -1,4 +1,4 @@
function git-push-new-gitea
git remote add gitea git@git.ataraxy.tk:Kevin-Mok/$argv[1].git
git remote add gitea ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[1].git
and git push --set-upstream gitea master
end

View File

@@ -0,0 +1,4 @@
function task-done
task $argv[1] done
and task
end

View File

@@ -0,0 +1,3 @@
function task-edit
task $argv[1] edit
end

View File

@@ -0,0 +1,4 @@
function task-mod-pri
task $argv[1] modify pri:$argv[2]
and task
end