A3TVGLVHSVLMEHLHB3TPBSD3QGNVGX3DIK6BEBDTTHWBNW4ALMRAC TODO_DIR="$HOME/.todos"if [[ ! -d "$TODO_DIR" ]]; thenmkdir -p "$TODO_DIR"/{shells,archive}fids() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/shells/$$.txt"}td() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/current"}pop-todo() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" ]]; thenmv "$shell_file" "$TODO_DIR/archive/$$.$(date +"%Y-%m-%d--%H-%M-%S")"returnfiif [[ -f "$day_file" ]]; thenmv "$day_file" "$TODO_DIR/archive/current.$(date +"%Y-%m-%d--%H-%M-%S")"returnfi}doing() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" || -f "$day_file" ]]; thenprintf '\033[0;33mTODO: \033[0m'fiif [[ -f "$shell_file" ]]; thencat "$shell_file" | tr '\n' ' 'elif [[ -f "$day_file" ]]; thencat "$day_file" | tr '\n' ' 'fiif [[ -f "$shell_file" || -f "$day_file" ]]; thenechofi}
#:depends-on:utilsadd_exe_path "$HOME/pfff/bin"
#:depends-on:utilsexport JAVA_HOME="`/usr/libexec/java_home`"prepend_exe_path "$JAVA_HOME/bin"
TODO_DIR="$HOME/.todos"if [[ ! -d "$TODO_DIR" ]]; thenmkdir -p "$TODO_DIR"/{shells,archive}fids() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/shells/$$.txt"}td() {local taskif [[ $# > 0 ]]; thentask="$@"elseread -r task\?'What doing? 'fiprintf '%s' "$task" > "$TODO_DIR/current"}pop-todo() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" ]]; thenmv "$shell_file" "$TODO_DIR/archive/$$.$(date +"%Y-%m-%d--%H-%M-%S")"returnfiif [[ -f "$day_file" ]]; thenmv "$day_file" "$TODO_DIR/archive/current.$(date +"%Y-%m-%d--%H-%M-%S")"returnfi}doing() {local shell_file day_fileshell_file="$TODO_DIR/shells/$$.txt"day_file="$TODO_DIR/current"if [[ -f "$shell_file" || -f "$day_file" ]]; thenprintf '\033[0;33mTODO: \033[0m'fiif [[ -f "$shell_file" ]]; thencat "$shell_file" | tr '\n' ' 'elif [[ -f "$day_file" ]]; thencat "$day_file" | tr '\n' ' 'fiif [[ -f "$shell_file" || -f "$day_file" ]]; thenechofi}
#:depends-on:utilsadd_exe_path "$HOME/pfff/bin"
#:depends-on:utilsexport JAVA_HOME="`/usr/libexec/java_home`"prepend_exe_path "$JAVA_HOME/bin"