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"