Taskwarrior config/fxn's, liteshort fxn's

Update NZXT packages.
This commit is contained in:
2019-09-05 00:48:47 -04:00
parent 0cb1db417b
commit 37ba6b8dcf
28 changed files with 256 additions and 33 deletions

View File

@@ -0,0 +1,5 @@
function git-push-initial
git add -A
and git commit -S -m 'Initial commit'
and git push
end

View File

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

View File

@@ -0,0 +1,10 @@
function smol-add
if test (count $argv) -eq 2
curl -d 'format=json' \
-d "long=$argv[1]" \
-d "short=$argv[2]" \
https://smol.gq | jq .
else
curl -d 'format=json' -d "long=$argv[1]" https://smol.gq | jq .
end
end

View File

@@ -0,0 +1,12 @@
function smol-delete
# delete and show
set userpass (pass show technology/linux/liteshort)
set url https://smol.gq
curl -u $userpass -d 'format=json' \
-d 'api=delete' \
-d "short=$argv[1]" \
$url | jq .
and curl -u $userpass -d 'format=json' \
-d 'api=listshort' \
$url | jq .
end

View File

@@ -0,0 +1,11 @@
function smol-replace
curl -u (pass show technology/linux/liteshort) \
-d 'format=json' \
-d 'api=delete' \
-d "long=$argv[1]" \
https://smol.gq | jq .
and curl -d 'format=json' \
-d "long=$argv[1]" \
-d "short=$argv[2]" \
https://smol.gq | jq .
end

View File

@@ -0,0 +1,6 @@
function smol-slist
curl -u (pass show technology/linux/liteshort) \
-d 'format=json' \
-d 'api=listshort' \
https://smol.gq | jq .
end

View File

@@ -0,0 +1,4 @@
function task-anno
task $argv[1] annotate $argv[2]
and task
end

View File

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

View File

@@ -0,0 +1,5 @@
function task-delete
task $argv[1] delete
and task sync
and task
end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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