From 6c435ee238fc89abc0503cdde671aaa2905a7937 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 2 Jul 2021 18:38:06 +0200 Subject: [PATCH] config/yadm/bootstrap: fix kak rerun & set sudo prompt timeout --- .config/yadm/bootstrap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index bd939b0..3b19978 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -12,7 +12,7 @@ sudo sysctl --system highlight "Default sudoers configuration" echo "Defaults editor=/usr/bin/nvim" | sudo tee /etc/sudoers.d/editor -echo "Defaults timestamp_timeout=120" | sudo tee /etc/sudoers.d/timeout +echo -e "Defaults timestamp_timeout=120\nDefaults passwd_timeout=30" | 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 @@ -86,5 +86,5 @@ highlight "SSH Permissions" chmod og= ~/.ssh -R highlight "Setup kakoune for plugins" -mkdir -p ~/.config/kak/plugins/ -git clone https://github.com/robertmeta/plug.kak.git ~/.config/kak/plugins/plug.kak +plugkak="${XDG_CONFIG_HOME:-$HOME/.config}/kak/plugins/plug.kak" +! test -d "$plugkak" && mkdir -p "$(dirname $plugkak)" && git clone https://github.com/robertmeta/plug.kak.git "$plugkak"