Usage
Getting started
The following guide will walk you through the process of installing and initializing the Dotfiles project on your machine. This will help you set up a consistent development environment across different systems, simplifying your workflow and making it easier to collaborate with others.
Prerequisites
Before proceeding with the installation, ensure that your system has the following tools:
wget
orcurl
: To fetch the installation script from the internet.git
: To clone the Dotfiles repository.
Most Linux distributions come with these tools pre-installed. If not, you can install them using your package manager.
Installing Dotfiles
To install the Dotfiles project on your machine, you need to fetch the installation script and execute it. You can do this using either wget
or curl
:
Using wget
:
Using curl
:
Running the above command will download the installation script and execute it, cloning the Dotfiles repository to your machine and setting up the necessary configurations.
For unattended installations such as in a dockerfile, you can use the environment variables to initialize the dotfiles automatically. For example:
# install dotfiles
ARG USER_FULLNAME="John Doe"
ARG USER_EMAIL="john.doe@email.com"
ARG GITHUB_USERNAME="john-doe"
ARG SYSTEM_HOSTNANE="devcon-arm64"
ENV USER_FULLNAME=$USER_FULLNAME
ENV USER_EMAIL=$USER_EMAIL
ENV GITHUB_USERNAME=$GITHUB_USERNAME
ENV SYSTEM_HOSTNAME=$SYSTEM_HOSTNAME
ENV WORKSPACE_LOCATION="/"
ENV DOTFILES_APPLY_ROOTMOI=0
ENV REMOTE_CONTAINERS=1
RUN sh -c "$(wget -qO- https://dotfiles.entelecheia.ai/install)"
CMD ["zsh"]
Or you can provide the environment variables in the command line:
USER_FULLNAME="John Doe" \
USER_EMAIL="john.doe@email.com" \
GITHUB_USERNAME="john-doe" \
SYSTEM_HOSTNAME="devcon-arm64" \
WORKSPACE_LOCATION="/" \
DOTFILES_APPLY_ROOTMOI=0 \
REMOTE_CONTAINERS=1 \
sh -c "$(wget -qO- https://dotfiles.entelecheia.ai/install)"
Initializing Dotfiles
After the installation, the initialization process will start automatically. This step applies the configurations defined in your dotfiles to your system, ensuring a consistent development environment.
If you need to re-initialize your dotfiles manually, you can run the following command:
This command will update your system with the latest configurations from your dotfiles, keeping your environment up-to-date and in sync with any changes you've made.
Once the initialization process is complete, you can start using your newly configured development environment. Feel free to explore the available configurations and customize them to your preferences.
Repositories and repository templates for setting up your own dotfiles
Installing the font on Windows
- Download Fira Code Regular Nerd Font Complete.
- Open the downloaded file and click Install.
- Restart Windows Terminal or VS Code.
Configuring the font in VS Code
- Open settings by pressing Ctrl/Cmd+,.
- Change the font family to FiraCode Nerd Font in Terminal › Integrated: Font Family.
Configuring the font in Windows Terminal
- On Windows Terminal, press Ctrl+, to open the settings.
- Go to Profiles -> Defaults in the left panel. Then, go to Additional settings -> Appearance.
- At Text -> Font face, enable the Show all fonts option and select FiraCode Nerd Font. Like below: