config: little setup fixes
This commit is contained in:
parent
0c2a3826c2
commit
fa8627230c
|
@ -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}"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue