Skip to content

Automate and streamline your configuration synching on multiple systems with this dotfiles.

License

Notifications You must be signed in to change notification settings

nicolodiamante/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

For those who are not familiar, the dotfiles directory is a hidden directory in the user's home directory that contains configuration files for various applications and tools. These files are typically preceded by a dot, hence the name "dotfiles". This project's shell scripts automate the installation of development tools, apps, and symbolic links, making it easy to automate and synchronise your configurations across multiple systems.



Terminal



Benefits of Dotfiles

  • Saves time and effort by automating the installation of development tools.
  • Ensures consistency across multiple systems by synchronising configurations.
  • Easy to set up and use.

Using a cloud service instead of GitHub

As a member of the Apple ecosystem, I decided to streamline my workflow by moving my dotfiles to iCloud Drive. Since I'm already paying for an iCloud subscription, it made sense to take advantage of this cloud storage service to keep all my dotfiles in one place. Putting dotfiles into iCloud Drive can be a great way to keep them synced across all of your Apple devices. However, my latest configuration still remains on Github, allowing me to easily push or pull updates as I make them. This simple sync process ensures that you can keep all your systems in sync and access your dotfiles from anywhere. This streamlined workflow saves you time and effort, making it a convenient and accessible solution for managing your dotfiles.

What are the benefits of working in the Cloud?

Using a cloud service, like Dropbox, Google Drive, or iCloud Drive, can offer various advantages, especially when it comes to real-time syncing. By storing your dotfiles in the cloud, you can quickly and easily access and edit them from any device, without worrying about manually transferring the latest version. Additionally, you can maintain the same folder structure across all your devices, making it easier to organise and locate your files. You can even use Github as a backup and reference to share your repository with others. This approach ensures that you always have access to the latest version of your configuration, no matter where you are.

iCloud Sync Folder

Getting started

Before incorporating someone else's dotfiles, it's recommended to review the code thoroughly to ensure that it's compatible with your system and to remove any unnecessary settings. Blindly using someone else's dotfiles without understanding what they do can lead to unintended consequences, so it's important to have a good understanding of what each configuration setting does before applying it to your system.


Installation

With the Bootstrap script, you can easily manage and install packages using Homebrew, npm and mas. Once the packages are installed and configured, the macOS settings will be automatically set up for you. The script will then proceed to create a symbolic link of your dotfiles in your home directory, while keeping the original files intact in either iCloud Drive or in your local directory.

Let's get started, download the repository via curl:

zsh -c "$(curl -fsSL https://raw.githubusercontent.com/nicolodiamante/dotfiles/HEAD/bootstrap.zsh)"

The script will first attempt to clone the repository to ~/Library/Mobile Documents/com~apple~CloudDocs, which is the path to the iCloud Drive directory for the user. If iCloud Drive is not available, the script will then clone the repository to ~ which is a local directory on the user's system.

Install Manually

As an alternative, you can download it first:

git clone https://github.com/nicolodiamante/dotfiles.git ~

Navigate to the dotfiles directory and execute the script.

cd bin && source bootstrap.zsh

Dotfiles


Add custom commands without creating a new fork

The user/config feature allows users to add custom commands to their dotfiles without having to fork the entire repository. This is useful for adding commands that users do not want to commit to a public repository. Additionally, users can also create additional files in the user/ directory which will be sourced automatically from the zshrc file and ignored by Git. This provides users with more flexibility in managing their dotfiles and allows them to easily customise their shell environment to suit their needs. With this approach, users can keep their dotfiles organised and easily accessible, while also ensuring that their sensitive information remains private.

Notes

Resources

Arch Linux

Base Directory

Zsh Documentations

Contribution

Thanks for considering these Dotfiles for your development needs. If you have any ideas on how to improve this project, please feel free to share them. If you encounter any issues or bugs, please report them to the issues page. Your feedback is valuable in helping to improve these Dotfiles.

Nicolò Diamante Portfolio

MIT License