Update
This commit is contained in:
@@ -99,9 +99,15 @@ abbr aan "task-anno"
|
||||
abbr ae "task-edit"
|
||||
abbr adl "task-delete"
|
||||
abbr adn "task-done"
|
||||
abbr adu "task-due"
|
||||
abbr adr "task-due-rm"
|
||||
abbr an "task-next"
|
||||
abbr anr "task-next-rm"
|
||||
abbr ant "task-notes"
|
||||
abbr apr "task-mod-pri"
|
||||
abbr aprl "task-mod-pri L"
|
||||
abbr aprm "task-mod-pri M"
|
||||
abbr aprh "task-mod-pri H"
|
||||
abbr apj "task-mod-proj"
|
||||
abbr at "task-mod-tag"
|
||||
abbr asr "task-start"
|
||||
@@ -113,6 +119,7 @@ abbr b "buku-fzf"
|
||||
abbr bf "buku-fzf fq"
|
||||
abbr bq "benq-brightness"
|
||||
abbr bupp "backup-phone-pics"
|
||||
abbr cccs "sync-alt-cal class"
|
||||
abbr cpc "copy cat"
|
||||
abbr cpe "copy echo"
|
||||
abbr cpp "copy echo (pwd)"
|
||||
@@ -122,8 +129,8 @@ abbr def "define"
|
||||
abbr ens "enable-site"
|
||||
abbr ev "evince-silent"
|
||||
# abbr fbg "find-bg"
|
||||
abbr fv "fzf-vim"
|
||||
abbr fvft "find-vim-filetype"
|
||||
abbr fzv "fzf-vim"
|
||||
# git [[[ #
|
||||
|
||||
abbr gcamp "git-amend-push"
|
||||
@@ -131,16 +138,19 @@ abbr gclg "git-clone-gitea"
|
||||
abbr gdf "git-diff-files"
|
||||
abbr gpsi "git-push-initial"
|
||||
abbr gpsmt "git-push-multiple"
|
||||
abbr gpng "git-push-new-gitea gitea"
|
||||
abbr gpngo "git-push-new-gitea origin"
|
||||
abbr gpng "git-push-new-gitea origin"
|
||||
abbr gpngg "git-push-new-gitea gitea"
|
||||
abbr gremotes "git-mult-remotes"
|
||||
abbr grmb "git-delete-branch"
|
||||
abbr gro "git-replace-origin"
|
||||
abbr grog "git-replace-origin-gitea"
|
||||
abbr gsmb "git-submodule-branch"
|
||||
|
||||
# ]]] git #
|
||||
abbr m "man-vim"
|
||||
abbr ma "man-vim task"
|
||||
abbr mat "math"
|
||||
abbr mdf "mkdir-cd"
|
||||
abbr pgr "grep-pdf"
|
||||
abbr pgrf "grep-pdf-file"
|
||||
abbr png "git-push-new-gitea"
|
||||
@@ -152,9 +162,8 @@ abbr smd "smol-delete"
|
||||
abbr sml "smol-slist"
|
||||
abbr smr "smol-replace"
|
||||
abbr shrm "shred-rm"
|
||||
abbr svs "scan-history"
|
||||
abbr tac "tmux-attach config"
|
||||
abbr taj "tmux-attach journal"
|
||||
abbr shs "scan-history"
|
||||
abbr svp "server-pages"
|
||||
abbr thes "thesaurus"
|
||||
abbr ut "unix-timestamp"
|
||||
abbr uzr "unzip-rm"
|
||||
@@ -176,4 +185,4 @@ abbr jct "java-compile-test"
|
||||
# ]]] fxn abbr's #
|
||||
|
||||
# task sync > /dev/null 2>&1
|
||||
~/scripts/xmodmap-custom
|
||||
# ~/scripts/xmodmap-custom
|
||||
|
||||
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