9 File Types
When you are looking through the repos you will notice that we use many different file types. Here is some more info on some of them.
9.1 Dotfiles
Dotfiles are configuration files used by computer programs to manage their functionality.
For example, after setting up and configuring
Git
,Git
will automatically create a.gitconfig
file which contains your information and settings.Git
will then use this file to configure your info and settings every time you use it.Dotfiles are handy because they are unique to you. You can use them to customize your settings and aesthetics. Dotfiles also allow you to set up the exact same settings on another machine.
Some common changes people add to dotfiles are:
- Personalized aesthetics
- Adding git and shell aliases
- Adding functions
Check out our dotfiles repo for some ideas.
Many of the things we customize in dotfiles are used to make our workflow quicker and simpler. For example, aliases and functions.
Aliases and functions
Aliases are shortcuts to terminal commands.
Aside from saving keystrokes, aliases help you avoid memorizing command options or digging in your shell history to find the command you need.
There are git aliases and shell aliases.
Git aliases are available in your terminal as Git options the same way
.add
,.commit
,.and
other options workSee New Graph Environent’s
Git
aliasesCheck out how to create your own aliases
Check out some cool shell aliases
Functions are used to combine two commands into one. Read more about functions here. https://www.freecodecamp.org/news/dotfiles-what-is-a-dot-file-and-how-to-create-it-in-mac-and-linux/