To install these dotfiles, you can use the following methods:
Copy code
bash -c "`curl -fsSL https://raw.githubusercontent.com/carmargut/dotfiles/master/install.sh`"This command will clone the repository to ~/.dotfiles using git, or download it using curl or wget.
Copy code
git clone https://github.com/carmargut/dotfiles.git ~/.dotfilesYou can manually clone the repository into the desired location.
Once the repository is installed, run the following commands to create symbolic links for the zsh and vim configurations:
cd ~ # goes to home folder
# Creates a symbolic link for zsh config
mv .zshrc .zshrc_old
ln -s .dotfiles/.zshrc
# Creates a symbolic link for vim config
mv .vimrc .vimrc_old
ln -s .dotfiles/.vimrc
# Creates a symbolic link for git config
mv .gitconfig .gitconfig_old
ln -s .dotfiles/.gitconfigIf you ever decide to remove this project, you can restore your original configuration files using the following commands:
cd ~
mv .zshrc .zshrc_old # restore .zshrc file
mv .vimrc .vimrc_old # restore .vimrc file
mv .gitconfig .gitconfig_old # restore .gitconfig file
To automatically update the dotfiles on an hourly basis, follow these steps:
Make the pull.sh script executable:
chmod +x pull.sh
Edit your crontab:
crontab -eAdd the following line at the end of the crontab:
0 * * * * ~/.dotfiles/pull.sh >> ~/.dotfiles/output.txt 2>&1 && tail -n 100 ~/.dotfiles/output.txt > tmp.txt && mv tmp.txt ~/.dotfiles/output.txtThis will execute the pull.sh script every hour (at the 0th minute) and redirect the output to ~/.dotfiles/output.txt (for log purposes. It's limited to the last 100 lines).
By following these steps, your dotfiles will be updated automatically on an hourly basis, and the output will be logged in the output.txt file.
To configure macOS settings to preferred defaults, execute the following script:
./set-mac-defaults.shThe script includes configurations such as enabling AirDrop over every interface, setting Finder preferences, configuring the Dock and hot corners, and more. Note that some changes may require a logout or restart to take effect.