mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
refractor: on chezmoi
Add multiple variables in chezmoi.toml, apply a more detailed ignore rule Use of chezmoi scripts Use Neogit for default git GUI (TUI) Integrate chezmoi with age
This commit is contained in:
parent
5921775239
commit
2a1127bf10
38 changed files with 988 additions and 129 deletions
15
home/.chezmoiscripts/darwin/run_once_touchid-sudo.sh
Normal file
15
home/.chezmoiscripts/darwin/run_once_touchid-sudo.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Use TouchID to authenticate before running sudo commands."
|
||||
echo "WARNING: This operation modifies critical system files."
|
||||
echo "If something goes wrong, you may need to boot into macOS Recovery Mode to restore your system."
|
||||
echo "To continue, type EXACTLY 'yes' and press Enter."
|
||||
read -p "Do you want to continue? (yes/no): " response
|
||||
if [ "$response" != "yes" ]; then
|
||||
echo "Operation cancelled."
|
||||
exit 0 # Exit with success status code
|
||||
fi
|
||||
echo ""
|
||||
|
||||
|
||||
sudo cp ~/.dotfiles/misc/mac/etc/pam.d/sudo /etc/pam.d/sudo
|
||||
Loading…
Add table
Add a link
Reference in a new issue