+2
bootstrap
+2
bootstrap
···
34
34
mkd "$HOME/bin/"
35
35
find "$dotfilesPath/bin" -type f -exec ln -sf {} "$HOME/bin/" \;
36
36
37
+
create_links_in_dir_recursively "todo.actions.d" ".todo.actions.d"
38
+
37
39
create_links_in_dir_recursively "config" ".config"
38
40
h "$dotfilesPath/config/alacritty.yml" "$HOME/.config/alacritty.yml"
39
41
h "$dotfilesPath/config/electron-flags.conf" "$HOME/.config/electron-flags.conf"
+16
config/todo/actions/@
+16
config/todo/actions/@
···
1
+
#!/usr/bin/env bash
2
+
action=$1
3
+
shift
4
+
5
+
CONTEXTS=$(grep -o '[^ ]*@[^ ]\+' "$TODO_FILE" | grep '^@' | sort -u | sed 's/^@//g' )
6
+
for context in $CONTEXTS ; do
7
+
if [[ $context == "someday" ]]; then
8
+
continue
9
+
fi
10
+
11
+
CONTEXT_LIST=$(_list "$TODO_FILE" "@$context\b" "$@" | sed 's/\ *@[a-zA-Z0-9._\-]*\ */ /g')
12
+
if [[ -n "${CONTEXT_LIST}" ]]; then
13
+
echo -e "--@${context}"
14
+
echo "${CONTEXT_LIST}" | eval $TODOTXT_FINAL_FILTER
15
+
fi
16
+
done
+20
config/todo/config
+20
config/todo/config
···
1
+
# vim: ft=bash
2
+
# reference: /etc/todo/config
3
+
4
+
export TODO_ACTIONS_DIR="$HOME/.dotfiles/config/todo/actions"
5
+
6
+
export TODO_DIR=~/org/
7
+
export TODO_FILE="$TODO_DIR/todo.txt"
8
+
export DONE_FILE="$TODO_DIR/done.txt"
9
+
export REPORT_FILE="$TODO_DIR/.report.txt"
10
+
11
+
export PRI_A=$YELLOW
12
+
export PRI_B=$PURPLE
13
+
export PRI_C=$LIGHT_BLUE
14
+
15
+
export COLOR_PROJECT=$GREEN
16
+
export COLOR_CONTEXT=$CYAN
17
+
export COLOR_DATE=$BLUE
18
+
export COLOR_NUMBER=$CYAN
19
+
20
+
export COLOR_META=$BLUE