This commit is contained in:
2019-10-07 22:46:08 -04:00
parent 82018d00a3
commit 31c621a339
22 changed files with 181 additions and 104 deletions

View File

@@ -0,0 +1,3 @@
function git-submodule-branch
git submodule set-branch --branch $argv[2] -- $argv[1]
end

View File

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

View File

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

View File

@@ -0,0 +1,6 @@
function git-replace-origin-gitea
git remote remove origin
and git remote add origin ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git
and git branch --set-upstream-to=origin/master master
and git push
end

View File

@@ -0,0 +1,3 @@
function mkdir-cd
mkdir -p $argv[1] && cd $argv[1]
end

View File

@@ -1,8 +1,8 @@
function server-pages
set sites git.ataraxy.tk khkm.tk cal.khkm.tk mnpd.gq/k-bg pste.gq smol.gq twem.tk
set titles "Kevin Mok's Gitea" "Kevin Mok" "Baïkal server" "k-bg" "hastebin" "Kevin's URL Shortener" "Index of /"
# set sites mnpd.gq/k-bg
# set titles "k-bg"
set sites kevin-mok.com git.kevin-mok.com cal.khkm.tk mnpd.gq/kbg pste.gq smol.gq twem.tk
set titles "Kevin Mok" "Kevin Mok's Gitea" "Baïkal server" "kbg" "hastebin" "Kevin's URL Shortener" "Twitch Emote Links"
# set sites twem.tk
# set titles "Twitch Emote Links"
for i in (seq (count $sites))
set title (wget -qO- "$sites[$i]" | perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' | recode html)

View File

@@ -0,0 +1,4 @@
function task-due-rm
task $argv[1] mod due:
and task
end

View File

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

View File

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

View File

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

View File

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