aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-03-06 00:25:53 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-03-06 00:25:53 +0800
commit46330677f75c0d20d9a1e32a1875f27ab41349ca (patch)
tree425154c745e6949f345132735e21ab81fcdde617
parent77a7744876f04ff9abcc2e0c2732fd4be6b052cb (diff)
Completion for task
-rw-r--r--alias1
-rwxr-xr-xbin/init/load-settings.sh2
-rw-r--r--zsh/zshrc4
3 files changed, 5 insertions, 2 deletions
diff --git a/alias b/alias
index 38123f8..cc069d0 100644
--- a/alias
+++ b/alias
@@ -512,6 +512,7 @@ tk() { task rc.context=`cat ~/.task/context` $@; }
512tkc(){ echo $1 >~/.task/context; } 512tkc(){ echo $1 >~/.task/context; }
513tkcn() { echo none >~/.task/context; } 513tkcn() { echo none >~/.task/context; }
514tkch() { echo home >~/.task/context; } 514tkch() { echo home >~/.task/context; }
515[ $shell = zsh ] && compdef _task tk
515alias tka='tk annotate' 516alias tka='tk annotate'
516alias tkd='tk done' 517alias tkd='tk done'
517alias tkD='tk delete' 518alias 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
9export shell=$(</proc/$$/cmdline sed -E 's/(.)-.+$/\1/' | tr -d '[\0\-]') 9export shell=$(</proc/$$/cmdline sed -E 's/(.)-.+$/\1/' | tr -d '[\0\-]')
10shell=${shell##*/} 10export shell=${shell##*/}
11 11
12# load custom aliases 12# load custom aliases
13source $SETTING_DIR/alias 13source $SETTING_DIR/alias
diff --git a/zsh/zshrc b/zsh/zshrc
index c11e798..b96e853 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -11,7 +11,6 @@ echo '\e[1 q'
11export SETTING_DIR=$HOME/helper 11export SETTING_DIR=$HOME/helper
12fpath=($SETTING_DIR/zsh $fpath) 12fpath=($SETTING_DIR/zsh $fpath)
13source $SETTING_DIR/zsh/completion.zsh 13source $SETTING_DIR/zsh/completion.zsh
14source $SETTING_DIR/bin/init/load-settings.sh
15 14
16# Reload zshrc 15# Reload zshrc
17function .() { 16function .() {
@@ -104,6 +103,9 @@ alias grep='grep --color'
104# Quick jump to parent folders 103# Quick jump to parent folders
105source ~/helper/zsh/bd.zsh 104source ~/helper/zsh/bd.zsh
106 105
106# Load my general settings
107source $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.