Search
Dotfiles
Dotfiles are important files that will play an integral role in your career as a software developer. They are configuration files for various programs that help those programs manage their functionality.
They are called dotfiles, as these are starting with . and are hidden files on Mac and linux by default. E.g., .config/nvim/ or .zshrc, which are located in the home folder $HOME or simply ~.
I have mine on dotfiles.ssp.sh, and someday, I’d like to automate the installation of my Macbook, with all my dotfiles. See more on dotfiles - automatic computer laptop setup (Macbook).
# Examples of common dotfiles
Some common dotfiles that you may have heard of or used before are:
- If you use the Bash shell, you might have a
.bash_profileand.bashrcfile. Both files contain scripts that load each time you start a new terminal session and configure the shell. - If you use the Zsh shell, which is the new default for MacOS, you would have (or would’ve created) a
.zshrcfile that configures and customizes the shell. - If you use the command line code editor Vim, you would store its configurations in a
.vimrcfile. - After setting up and configuring Git on your local machine, you would have a
.gitconfigfile, which would contain all your information and settings. - Many programs, instead of storing their configurations in your home directory, instead store them in the hidden
.configdirectory (folder) on your system.
# Nvim Setup
Origin:
References: dotfiles - automatic computer laptop setup (Macbook)
Created 2023-12-10