config: little setup fixes

This commit is contained in:
xerus2000 2020-12-27 13:54:32 +01:00
parent 0c2a3826c2
commit fa8627230c
2 changed files with 2 additions and 2 deletions

View File

@ -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}"

View File

@ -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