Update
This commit is contained in:
3
dot_config/fish/functions/git-submodule-branch.fish
Normal file
3
dot_config/fish/functions/git-submodule-branch.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
function git-submodule-branch
|
||||
git submodule set-branch --branch $argv[2] -- $argv[1]
|
||||
end
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
3
dot_config/fish/functions/mkdir-cd.fish
Normal file
3
dot_config/fish/functions/mkdir-cd.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
function mkdir-cd
|
||||
mkdir -p $argv[1] && cd $argv[1]
|
||||
end
|
||||
@@ -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)
|
||||
|
||||
4
dot_config/fish/functions/task/task-due-rm.fish
Normal file
4
dot_config/fish/functions/task/task-due-rm.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-due-rm
|
||||
task $argv[1] mod due:
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-due.fish
Normal file
4
dot_config/fish/functions/task/task-due.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-due
|
||||
task $argv[1] mod due:+$argv[2]
|
||||
and task
|
||||
end
|
||||
@@ -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
|
||||
|
||||
4
dot_config/fish/functions/task/task-next-rm.fish
Normal file
4
dot_config/fish/functions/task/task-next-rm.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-next-rm
|
||||
task $argv[1] modify -nx
|
||||
and task
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
function task-next
|
||||
task $argv[1] modify +next
|
||||
task $argv[1] modify +nx
|
||||
and task
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user