Skip to content

Commit

Permalink
Added task warrior
Browse files Browse the repository at this point in the history
  • Loading branch information
tdickman committed Aug 31, 2018
1 parent cb951cc commit d396173
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.log
tmux-resurrect/
tmux-continuum
.packages/
71 changes: 71 additions & 0 deletions .taskopenrc
Original file line number Diff line number Diff line change
@@ -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/tasknotes/"

# Preferred extension for tasknotes
NOTES_EXT=".txt"

# 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=""
4 changes: 4 additions & 0 deletions bash_aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,7 @@ function vpnall {
rm /tmp/vpn
}
export -f vpnall

# Task Warrior
alias t='task'
alias to='taskopen'
14 changes: 14 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ln -s $SCRIPTPATH/bash_aliases.sh ~/.bash_aliases.sh
ln -s $SCRIPTPATH/bash_shared.sh ~/.bash_shared.sh
ln -s $SCRIPTPATH/.jshintrc ~/.jshintrc
ln -s $SCRIPTPATH/.ctags ~/.ctags
ln -s $SCRIPTPATH/.taskopenrc ~/.taskopenrc
sudo ln -s $SCRIPTPATH/ksec.py /usr/local/bin/ksec
sudo chmod +x /usr/local/bin/ksec
ln -s ~/.vim/vimrc ~/.vimrc
Expand All @@ -30,3 +31,16 @@ git -C tmux-continuum pull || git clone https://github.com/tmux-plugins/tmux-con
wget https://github.com/johanhaleby/kubetail/raw/master/kubetail -O ~/.local/bin/kubetail
chmod +x ~/.local/bin/kubetail
sudo wget https://raw.githubusercontent.com/johanhaleby/kubetail/master/completion/kubetail.bash -O /etc/bash_completion.d/kubetail.bash

# Linux packages
sudo apt update
sudo apt install -y taskwarrior

# Install task-open
sudo apt-get install -y libjson-perl
mkdir -p .packages/
cd .packages/
git clone https://github.com/ValiValpas/taskopen.git
cd taskopen
make PREFIX=/usr
sudo make PREFIX=/usr install

0 comments on commit d396173

Please sign in to comment.