From fa8627230cb2d21a215a7b533679b2ad18dbbeb3 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Sun, 27 Dec 2020 13:54:32 +0100 Subject: [PATCH] config: little setup fixes --- .config/shell/functions | 2 +- .config/yadm/bootstrap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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