TIL you can have conditional sections in your .gitconfig
As some of you may know, I keep my dotfiles in a git repo. The problem with this approach is that my email in my .gitconfig is set to hello@haseebmajid.dev.
Where my config looks something like this:
[user] email = hello@haseebmajid.dev name = Haseeb Majid # ... However, when I am at work I need to use a different email to commit i.
...
Previous article This article assumes you are familiar with dotfiles and Dobot. If you want to know more about Dotbot click here In this article I will show you how you can use Dotbot plugins. We can use Dotbot plugins to run new directives such as apt. So we can use the apt package manager, so install packages.
Tip One useful use case is when we setup on a new system we may want to make we have some packages installed like vim or make.
...
Previous article This article assumes you are familiar with dotfiles and Dobot. If you want to know more about Dotbot click here If you are like me you have devices, such as personal desktop and a work laptop. These devices share some dotfiles but also have specific program and applications.
For example:
Personal Desktop: Linux Work Laptop: Windows (WSL) On Linux I use alacritty and in Windows I use Windows terminal I could copy all my dotfiles over and not worry about which programs exist on which systems.
...
If you’re like me you find yourself moving between multiple systems. Whether that be between my personal desktop and my work laptop or distro hopping on Linux. See relevant meme below:
What are dotfiles? Many tools/program store their configuration files as files on your machine. On Linux you will often find these in ~/.config directory.
Some common examples of dotfiles:
- .vimrc - .bashrc - .gitconfig I wanted to find an easy way to manage my dotfiles and share them between mutiple systems.
...