diff --git a/.config/shell/functions b/.config/shell/functions index bddfb11..a2be5d3 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -95,7 +95,7 @@ swap() { # Task management & time tracking t() { - if test "$#" -eq 0 + if test "$#" -eq 0 && which tn >/dev/null then tn else if test "$1" = "do" then test "$2" -gt 0 2>/dev/null && task mod sched:today "${@:2}" || task add sched:today "${@:2}" diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 05a40b4..d3b7c95 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -11,7 +11,7 @@ sudo sysctl --system highlight "Default sudoers configuration" echo "Defaults editor=/usr/bin/nvim" | sudo tee /etc/sudoers.d/editor -echo "Defaults timestamp_timeout=20" | sudo tee /etc/sudoers.d/timeout +echo "Defaults timestamp_timeout=120" | sudo tee /etc/sudoers.d/timeout highlight "password-free reboot" echo "$USER ALL = NOPASSWD: /sbin/halt, /sbin/reboot, /usr/sbin/reboot, /sbin/poweroff, /usr/sbin/shutdown" | sudo tee /etc/sudoers.d/shutdown