config/yadm/bootstrap: fix kak rerun & set sudo prompt timeout

This commit is contained in:
xeruf 2021-07-02 18:38:06 +02:00
parent 436a4fcccf
commit 6c435ee238
1 changed files with 3 additions and 3 deletions

View File

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