diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-03-06 00:25:53 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-03-06 00:25:53 +0800 |
commit | 46330677f75c0d20d9a1e32a1875f27ab41349ca (patch) | |
tree | 425154c745e6949f345132735e21ab81fcdde617 | |
parent | 77a7744876f04ff9abcc2e0c2732fd4be6b052cb (diff) |
Completion for task
-rw-r--r-- | alias | 1 | ||||
-rwxr-xr-x | bin/init/load-settings.sh | 2 | ||||
-rw-r--r-- | zsh/zshrc | 4 |
3 files changed, 5 insertions, 2 deletions
@@ -512,6 +512,7 @@ tk() { task rc.context=`cat ~/.task/context` $@; } | |||
512 | tkc(){ echo $1 >~/.task/context; } | 512 | tkc(){ echo $1 >~/.task/context; } |
513 | tkcn() { echo none >~/.task/context; } | 513 | tkcn() { echo none >~/.task/context; } |
514 | tkch() { echo home >~/.task/context; } | 514 | tkch() { echo home >~/.task/context; } |
515 | [ $shell = zsh ] && compdef _task tk | ||
515 | alias tka='tk annotate' | 516 | alias tka='tk annotate' |
516 | alias tkd='tk done' | 517 | alias tkd='tk done' |
517 | alias tkD='tk delete' | 518 | alias tkD='tk delete' |
diff --git a/bin/init/load-settings.sh b/bin/init/load-settings.sh index fcd6494..eca5a60 100755 --- a/bin/init/load-settings.sh +++ b/bin/init/load-settings.sh | |||
@@ -7,7 +7,7 @@ export XDG_CONFIG_HOME=~/.config | |||
7 | 7 | ||
8 | # Get current shell | 8 | # Get current shell |
9 | export shell=$(</proc/$$/cmdline sed -E 's/(.)-.+$/\1/' | tr -d '[\0\-]') | 9 | export shell=$(</proc/$$/cmdline sed -E 's/(.)-.+$/\1/' | tr -d '[\0\-]') |
10 | shell=${shell##*/} | 10 | export shell=${shell##*/} |
11 | 11 | ||
12 | # load custom aliases | 12 | # load custom aliases |
13 | source $SETTING_DIR/alias | 13 | source $SETTING_DIR/alias |
@@ -11,7 +11,6 @@ echo '\e[1 q' | |||
11 | export SETTING_DIR=$HOME/helper | 11 | export SETTING_DIR=$HOME/helper |
12 | fpath=($SETTING_DIR/zsh $fpath) | 12 | fpath=($SETTING_DIR/zsh $fpath) |
13 | source $SETTING_DIR/zsh/completion.zsh | 13 | source $SETTING_DIR/zsh/completion.zsh |
14 | source $SETTING_DIR/bin/init/load-settings.sh | ||
15 | 14 | ||
16 | # Reload zshrc | 15 | # Reload zshrc |
17 | function .() { | 16 | function .() { |
@@ -104,6 +103,9 @@ alias grep='grep --color' | |||
104 | # Quick jump to parent folders | 103 | # Quick jump to parent folders |
105 | source ~/helper/zsh/bd.zsh | 104 | source ~/helper/zsh/bd.zsh |
106 | 105 | ||
106 | # Load my general settings | ||
107 | source $SETTING_DIR/bin/init/load-settings.sh | ||
108 | |||
107 | 109 | ||
108 | # Finally, make sure the terminal is in application mode, when zle is | 110 | # Finally, make sure the terminal is in application mode, when zle is |
109 | # active. Only then are the values from $terminfo valid. | 111 | # active. Only then are the values from $terminfo valid. |