|
|
@ -5,6 +5,55 @@
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function q1 {
|
|
|
|
|
|
|
|
echo 'Important and Urgent'
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
|
|
|
|
task q1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
task $1 mod prio:H +urg -unu
|
|
|
|
|
|
|
|
task inbox
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function q2 {
|
|
|
|
|
|
|
|
echo 'Important and Not Urgent'
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
|
|
|
|
task q2
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
task $1 mod prio:H +unu -urg
|
|
|
|
|
|
|
|
task inbox
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function q3 {
|
|
|
|
|
|
|
|
echo 'Not Important and Urgent'
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
|
|
|
|
task q3
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
task $1 mod prio:L +urg -unu
|
|
|
|
|
|
|
|
task inbox
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function q4 {
|
|
|
|
|
|
|
|
echo 'Not Important and Not Urgent'
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
|
|
|
|
task q4
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
task $1 mod prio:L +unu -urg
|
|
|
|
|
|
|
|
task inbox
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function toverview {
|
|
|
|
|
|
|
|
echo Inbox
|
|
|
|
|
|
|
|
task inbox
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
q1
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
q2
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
q3
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
q4
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function _df() {
|
|
|
|
function _df() {
|
|
|
|
echo "$*"
|
|
|
|
echo "$*"
|
|
|
|
btrfs filesystem usage "$*" 2> /dev/null | grep -o 'Free .*'
|
|
|
|
btrfs filesystem usage "$*" 2> /dev/null | grep -o 'Free .*'
|
|
|
|