This repository has been archived by the owner on May 4, 2024. It is now read-only.
generated from ecarlson94/userspace
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Eric Carlson edited this page Oct 12, 2023
·
11 revisions
This tutorial will help you get started with using the dotbot-template to create a personal dotfiles repository backed by Dotbot.
- Navigate to dotbot-template in your browser
- Click on the green
Use this template
button- This will take you to the
Create a new repository
screen
- This will take you to the
- Name your repository
dotfiles
- Click on the green
Create repository from template
button - Clone your new
dotfiles
repository locally - Remove the existing files from
./meta/profiles
and./meta/configs
Now it is time for the fun part. We will add our first dotfile configuration. This tutorial will use vim
, zsh
, and alacritty
as our first dotfiles.
A good practice from an organizational standpoint is to create a separate folder at the root of our dotfiles
repository for each program we want to manage dotfiles.
- At the root of your
dotfiles
repository, create the following folders-
vim
- terminal editor -
zsh
- bash alternative -
alacritty
- Hardware accelerated terminal emulator
-
- Create a new file inside
./vim
calledvimrc
- Create a new file inside
./zsh
calledzshrc
- Create a new file inside
./alacritty
calledalacritty.yml
with the following content:shell: program: /usr/bin/local/zsh args: - --login
- Create a new file inside
./meta/configs
calledvim.yaml
(must be.yaml
, not.yml
) with the following content:- link: $HOME/.vimrc: vim/vimrc
- Create a new file inside
./meta/configs
calledzsh.yaml
(must be.yaml
, not.yml
) with the following content:- link: $HOME/.zshrc: zsh/zshrc
- Create a new file inside
./meta/configs
calledalacritty.yaml
(must be.yaml
, not.yml
) with the following content:- link: $HOME/.config/alacritty: alacritty
- From a terminal at the root of your
dotfiles
repository, run./install-standalone vim zsh
If you want to use this configuration as part of a machine specific setup, follow these steps:
- Create a new file in
./meta/profiles
calleddefault
with the following content:vim zsh
- If you want to run a config as a sudoer, add
-sudo
to the config (vim-sudo
instead ofvim
)- This is more relevant when building a BYOU
- You can add as many configs here as you like (config name without the
.yaml
)
- If you want to run a config as a sudoer, add
- From a terminal at the root of your
dotfiles
repository, run./install-profile default
Your done! Don't forget to update your README.md
, commit your changes, and push them up!
-
Dotfiles Repository
- ecarlson94/dotfiles Dotbot Directives