config/yadm/bootstrap: fix kak rerun & set sudo prompt timeout
This commit is contained in:
parent
436a4fcccf
commit
6c435ee238
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue