Taskwarrior config/fxn's, liteshort fxn's
Update NZXT packages.
This commit is contained in:
5
dot_config/fish/functions/git/git-push-initial.fish
Executable file
5
dot_config/fish/functions/git/git-push-initial.fish
Executable file
@@ -0,0 +1,5 @@
|
||||
function git-push-initial
|
||||
git add -A
|
||||
and git commit -S -m 'Initial commit'
|
||||
and git push
|
||||
end
|
||||
@@ -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
|
||||
|
||||
10
dot_config/fish/functions/smol/smol-add.fish
Normal file
10
dot_config/fish/functions/smol/smol-add.fish
Normal 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
|
||||
12
dot_config/fish/functions/smol/smol-delete.fish
Normal file
12
dot_config/fish/functions/smol/smol-delete.fish
Normal 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
|
||||
11
dot_config/fish/functions/smol/smol-replace.fish
Normal file
11
dot_config/fish/functions/smol/smol-replace.fish
Normal 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
|
||||
6
dot_config/fish/functions/smol/smol-slist.fish
Normal file
6
dot_config/fish/functions/smol/smol-slist.fish
Normal 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
|
||||
4
dot_config/fish/functions/task/task-anno.fish
Normal file
4
dot_config/fish/functions/task/task-anno.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-anno
|
||||
task $argv[1] annotate $argv[2]
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-context.fish
Normal file
4
dot_config/fish/functions/task/task-context.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-context
|
||||
task context $argv[1]
|
||||
and task
|
||||
end
|
||||
5
dot_config/fish/functions/task/task-delete.fish
Normal file
5
dot_config/fish/functions/task/task-delete.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
function task-delete
|
||||
task $argv[1] delete
|
||||
and task sync
|
||||
and task
|
||||
end
|
||||
@@ -1,4 +1,5 @@
|
||||
function task-done
|
||||
task $argv[1] done
|
||||
and task sync
|
||||
and task
|
||||
end
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
function task-edit
|
||||
task $argv[1] edit
|
||||
and task
|
||||
end
|
||||
|
||||
4
dot_config/fish/functions/task/task-mod-proj.fish
Normal file
4
dot_config/fish/functions/task/task-mod-proj.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-mod-proj
|
||||
task $argv[1] modify project:$argv[2]
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-mod-tag.fish
Normal file
4
dot_config/fish/functions/task/task-mod-tag.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-mod-tag
|
||||
task $argv[1] modify +$argv[2]
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-next.fish
Normal file
4
dot_config/fish/functions/task/task-next.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-next
|
||||
task $argv[1] modify +next
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-start.fish
Normal file
4
dot_config/fish/functions/task/task-start.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-start
|
||||
task $argv[1] start
|
||||
and task
|
||||
end
|
||||
Reference in New Issue
Block a user