This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cache='/tmp/jira_all' | |
assignee="" | |
timeout=3600 # 60m * 60s = 1hr | |
if [[ $1 == "mine" ]]; then | |
cache='/tmp/jira_mine' | |
assignee="-a $(jira me)" | |
fi | |
function refresh_cache() { | |
jira issue list $assignee --plain --columns id,summary,status,type > $cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This belongs to /etc/bash_completion.d/tmsu or ~/.bash_completion | |
# Original from tomassedovic (https://github.com/oniony/TMSU/issues/78) and Master-jim | |
# TODO: handle spaces in values. | |
# Use this to control if values are displayed or just summarized, they will be expanded after the = is typed/selected | |
#VALUES="display" | |
VALUES="summarize" | |
COMP_WORDBREAKS="${COMP_WORDBREAKS}=" | |
have tmsu && |