Taskwarrior config/fxn's, liteshort fxn's
Update NZXT packages.
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user