Kevin Mok
5 years ago
28 changed files with 256 additions and 33 deletions
-
21aliases/key_aliases.tmpl
-
4aliases/key_dirs.tmpl
-
3aliases/key_files.tmpl
-
3dot_Xresources.tmpl
-
32dot_config/fish/config.fish.tmpl
-
5dot_config/fish/functions/git/git-push-initial.fish
-
4dot_config/fish/functions/git/git-push-new-gitea.fish
-
10dot_config/fish/functions/smol/smol-add.fish
-
12dot_config/fish/functions/smol/smol-delete.fish
-
11dot_config/fish/functions/smol/smol-replace.fish
-
6dot_config/fish/functions/smol/smol-slist.fish
-
4dot_config/fish/functions/task/task-anno.fish
-
4dot_config/fish/functions/task/task-context.fish
-
5dot_config/fish/functions/task/task-delete.fish
-
1dot_config/fish/functions/task/task-done.fish
-
1dot_config/fish/functions/task/task-edit.fish
-
4dot_config/fish/functions/task/task-mod-proj.fish
-
4dot_config/fish/functions/task/task-mod-tag.fish
-
4dot_config/fish/functions/task/task-next.fish
-
4dot_config/fish/functions/task/task-start.fish
-
11dot_config/i3/config.tmpl
-
71dot_taskopenrc
-
39dot_taskrc
-
4dot_vimrc.tmpl
-
0scripts/executable_xmodmap-custom
-
10txt/nzxt-all.txt
-
4txt/nzxt-aur.txt
-
6txt/nzxt-pkgs.txt
@ -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 |
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 |
end |
@ -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 |
@ -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 |
@ -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 |
@ -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 |
@ -0,0 +1,4 @@ |
|||||
|
function task-anno |
||||
|
task $argv[1] annotate $argv[2] |
||||
|
and task |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
function task-context |
||||
|
task context $argv[1] |
||||
|
and task |
||||
|
end |
@ -0,0 +1,5 @@ |
|||||
|
function task-delete |
||||
|
task $argv[1] delete |
||||
|
and task sync |
||||
|
and task |
||||
|
end |
@ -1,4 +1,5 @@ |
|||||
function task-done |
function task-done |
||||
task $argv[1] done |
task $argv[1] done |
||||
|
and task sync |
||||
and task |
and task |
||||
end |
end |
@ -1,3 +1,4 @@ |
|||||
function task-edit |
function task-edit |
||||
task $argv[1] edit |
task $argv[1] edit |
||||
|
and task |
||||
end |
end |
@ -0,0 +1,4 @@ |
|||||
|
function task-mod-proj |
||||
|
task $argv[1] modify project:$argv[2] |
||||
|
and task |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
function task-mod-tag |
||||
|
task $argv[1] modify +$argv[2] |
||||
|
and task |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
function task-next |
||||
|
task $argv[1] modify +next |
||||
|
and task |
||||
|
end |
@ -0,0 +1,4 @@ |
|||||
|
function task-start |
||||
|
task $argv[1] start |
||||
|
and task |
||||
|
end |
@ -0,0 +1,71 @@ |
|||||
|
|
||||
|
#BROWSER='xdg-open $FILE &>/dev/null' |
||||
|
#EDITOR='vim' |
||||
|
#FILE_CMD='xdg-open' |
||||
|
TASKBIN='task' |
||||
|
|
||||
|
# If you sync tasks NOTES_FOLDER should be a location that syncs and is available to |
||||
|
# other computers, i.e. /users/dropbox/tasknotes |
||||
|
# NOTES_FOLDER to store notes in, must already exist! |
||||
|
NOTES_FOLDER="$HOME/.task/notes/" |
||||
|
|
||||
|
# Preferred extension for tasknotes |
||||
|
NOTES_EXT=".md" |
||||
|
|
||||
|
# Path to notes file. UUID will be replaced with the actual uuid of |
||||
|
# the task. If NOTES_CMD |
||||
|
# Default is: ${NOTES_FOLDER}UUID${NOTES_EXT} |
||||
|
#NOTES_FILE="$HOME/tasknotes/UUID.txt" |
||||
|
|
||||
|
# Command that opens notes. UUID will be replaced with the actual uuid of |
||||
|
# the task. |
||||
|
# Default is: $EDITOR $NOTES_FILE |
||||
|
#NOTES_CMD="vim "$HOME/tasknotes/$UUID.txt"" |
||||
|
|
||||
|
# Specify the default sorting. |
||||
|
# Default is taskwarrior's default sorting, i.e. sorting by task IDs. |
||||
|
#DEFAULT_SORT="urgency-,label,annot" |
||||
|
|
||||
|
# Apply a default taskwarrior filter in order to exclude certain tasks. |
||||
|
# Default is: status.is:pending |
||||
|
#DEFAULT_FILTER= |
||||
|
|
||||
|
# Default command for '-i' |
||||
|
# Default is: ls -la |
||||
|
#DEFAULT-i="ls -la" |
||||
|
|
||||
|
# Add some paths to the taskopen's PATH variable |
||||
|
#PATH_EXT=/path/to/taskopen/scripts |
||||
|
PATH_EXT=/usr/share/taskopen/scripts |
||||
|
|
||||
|
# Regular expression that referes to the NOTES_FILE. |
||||
|
# Default is: Notes |
||||
|
#NOTES_REGEX="Notes" |
||||
|
|
||||
|
# Regular expression that identifies annotations openable by BROWSER. |
||||
|
# Default is: www|http |
||||
|
#BROWSER_REGEX="www|http" |
||||
|
|
||||
|
# Regular expression that identifies file paths in annotations. Will be opened by xdg-open. |
||||
|
# Default is: \.|\/|~ |
||||
|
#FILE_REGEX="\.|\/|~" |
||||
|
|
||||
|
# Regular expression that identifies a text annotation. Automatically triggers raw edit mode like '-r'. |
||||
|
#TEXT_REGEX=".*" |
||||
|
|
||||
|
# Custom regular expression that specifies annotations passed to CUSTOM1_CMD, e.g: |
||||
|
#CUSTOM1_REGEX="Message-[Ii][Dd]:|message:" |
||||
|
#CUSTOM1_CMD="muttjumpwrapper" |
||||
|
|
||||
|
# Custom regular expression that specifies annotations passed to CUSTOM2_CMD. |
||||
|
#CUSTOM2_REGEX="" |
||||
|
#CUSTOM2_CMD="" |
||||
|
|
||||
|
# Execute an arbitrary command if there is no annotation available. The corresponding taskwarrior IDs will |
||||
|
# be passed as arguments, e.g. "addnote 21 42" |
||||
|
#NO_ANNOTATION_HOOK=addnote |
||||
|
|
||||
|
# Make additional taskwarrior attributes available as sort keys and environment variables. |
||||
|
# E.g. TASK_ATTRIBUTES="project,tags" allows to sort by "task_project" or "task_tags" and to use |
||||
|
# "$TASK_PROJECT" or "$TASK_TAGS" within your (custom) commands. |
||||
|
#TASK_ATTRIBUTES="" |
Write
Preview
Loading…
Cancel
Save
Reference in new issue