Dotfiles are the configuration files for various tools and programs.
Most of them start with a .
- that´s why they are called dotfiles
.
I use a git bare repository to manage my dotfiles. I found the idea on Derek Taylor´s Youtube Channel. His GitLab page is also a great resource for configuration ideas.
Clone the repository into a dotfiles
folder.
git clone --bare https://github.com/JakobFerdinand/dotfiles.git $HOME/dotfiles
Checkout the the main branch.
git --git-dir=$HOME/dotfiles --work-tree=$HOME checkout
Tip
If you are using Windows be sure to use Powershell Core.
Follow the instructions for Powershell.
Prevent Git from showing all files.
config config status.showUntrackedFiles no
Now you have configured aliases for zsh
and powershell
and can work with the repository directly through the command config
.
Example:
config commit -m "Updated readme.md"
For using all tools and options configured in the zsh configuration
some tools are needed.
Go mainly is needed to install other tools.
MacOS
brew install go
Chroma
is a general purpose syntax highlither.
It´s used by the ccat
tool.
go get -u github.com/alecthomas/chroma/cmd/chroma