This is a personal setup that automates the process of configuring my macOS development environment when setting up a new Mac machine.
The install.sh
script will automatically set up the necessary configurations and install software for a smooth development workflow.
Important: This setup is tailored to my development preferences and environment. You are welcome to use it, but please proceed at your own risk. Make sure to review the scripts and adjust them to fit your specific needs before running them.
- macOS: The installation script is tailored for macOS users.
Clone this repository to your local machine by running the following command in your terminal:
git clone https://github.com/ninanathalie/dotfiles.git
Change into the directory where the .dotfiles repository was cloned:
cd ~/.dotfiles
Before you can run the install.sh script, you need to make it executable. Run the following command:
chmod +x install.sh
Now, you can run the installation script to set up your environment:
./install.sh
- Installs Homebrew, Yarn, Composer, and other development tools.
- Sets up Oh My Zsh with the Powerlevel10k theme.
- Installs helpful Zsh plugins like
zsh-autosuggestions
andzsh-syntax-highlighting
. - Copies your custom
.zshrc
and other dotfiles to the right locations. - Installs VSCode and other useful apps via Homebrew and links to download pages for some apps like Chrome and Figma.
Once the script runs:
-
Configure Powerlevel10k by running:
p10k configure
In this repository, you'll find a .gitconfig.example
file which contains a sample Git configuration. It includes settings such as user name and email, as well as useful aliases.
Important Note:
If you intend to use this file, be sure to edit the name
and email
fields to match your own Git identity before using it. Here’s the section you’ll need to modify:
[user]
name = Your Name
email = youremail@example.com
Once you've customized it, you can rename the file to .gitconfig and place it in your home directory (~) to apply the changes.
mv .gitconfig.example ~/.gitconfig
Use includeIf
directive to use a separate configuration file (~/.gitconfig-work
) whenever you're working in the specified directory (~/path/to/work-files/
).
Open your .gitconfig
file (located in your home directory ~/.gitconfig
):
code ~/.gitconfig
To configure a separate identity for work repositories, add the following snippet to your .gitconfig
:
[includeIf "gitdir:~/path/to/work-files/"]
path = ~/.gitconfig-work
Next, create the .gitconfig-work
file to specify your work-related settings
[user]
name = Work Name
email = workemail@example.com
Feel free to customize your .zshrc
, .gitconfig
, and other configuration files. You can directly edit these files in your home directory (~
).
For example, to open your .zshrc
for editing:
code ~/.zshrc
You can modify aliases, plugins, and other shell configurations to suit your needs.